Hide menu
Loading...
Searching...
No Matches

Activates the license key. More...

Inherits global.SystemIDisposable.

Public Member Functions

 LicenseManager (global::System.IntPtr cPtr, bool cMemoryOwn)
 
void Dispose ()
 

Static Public Member Functions

static void Acquire (string theModule)
 
static bool Activate (string theKey)
 

Protected Member Functions

virtual void Dispose (bool disposing)
 

Detailed Description

Activates the license key.

The key is provided by the vendor.

License activation must be done once before the licensed product can be used for the first time. Activation can be done from within C++ or C code.

Returns true if the activation has been successful and false otherwise.

Example of use:

static const char aKey[] =
"@CUSTOMER=MY_CORP_ @CUSTOMER_APP=MY_APPLICATION___ @PRODUCT=MY_PRODUCT @VERSION="
"ANY @UPGRADE_EXPIRATION=20101125 @USE_EXPIRATION=PERMANENT @VENDOR=http://www.ca"
"dexchanger.com @WARNING=This license key may not be disclosed to any third party"
" without prior written permission from vendor 2Z1Q1LMRGEO1A1T3CMWJQS5VQJONQ94RSC"
"31DIG2VRNM07O1RI7H1SBGQ0UQ9MJS5K9JE2JVBIOP5ZQF085WHRPKVMGX2YP596IO33Z74T7L8K2ELW"
"NKX6CMQ98Y9R138NBL8VFLYH3R9OWTKS1QGXKIM42R27CX6R7MSFVEL681TPLWRY61KOFLQTAGTOXG7E"
"3HLJXPIWF2EKP4H4RHKRSQSIMSBBXA0SFXMMNYZRO6DXF0A0RUWHDDZ8LVMRKDVSEM7P9THYMEIJSCHB"
"39G0JZZNTTBMDX9KSW4PK3DAYMY4J9G8BHGAH2K67NR6O4B63S6GNR1F73ZU5TAXQJT48PMZY8G8QSFR"
"H91V0V0VB56EI75PZM88F5UEM92YEIM20DDI91QEO0JCKC32K1MKC0VLT1400G7MKILB531QFHLZOS83"
"G4DKC5TTBD3HEMU2OOLO65V3VZ8A8OQ8V5A1VHF8295LD5Q9S0QHU9H3VN0VC7M8MUOXK40POANC72H1F"
"HB8FQDZPO2XJQQUI6B6E5UAVD8A35RBDG039ON4ZDD2T5P5254DKKLQLHFGLH7EP57M5O01F7KV0CXE7"
"5PPS8RKAD0H9QXU1ZZWSLQ16O269YWBPRYEYFP18OEZFZ788ORTC92AVM9695O5V605VD6SGMAM1T1LH"
"QFGHJQR8N9BFUQKRU2TVENSYCXI9R07PW0H6X6FJMW6Q0LAYSTSUWRRNUO9P1UJS";
if (!CADExLicense_Activate (aKey)) {
std::cerr << "Failed to activate the license. Exiting." << std::endl;
exit (1);
}
See also
cadex.LicenseManager_LicenseError
Examples
MTKConverter/Program.cs, exploring/bom/Program.cs, exploring/brep_geometry/Program.cs, exploring/brep_topology/Program.cs, exploring/drawings/Program.cs, exploring/mesh/Program.cs, exploring/pmi/Program.cs, machining/dfm_analyzer/Program.cs, machining/feature_recognizer/Program.cs, meshing/mesh_generation/Program.cs, molding/dfm_analyzer/Program.cs, molding/feature_recognizer/Program.cs, nesting/nesting_computer/Program.cs, projector/poly_projector/Program.cs, sheet_metal/dfm_analyzer/Program.cs, sheet_metal/feature_recognizer/Program.cs, sheet_metal/unfolder/Program.cs, utilities/progress_bar/Program.cs, utilities/thumbnail_generation/Program.cs, and wall_thickness/analyzer/Program.cs.