Click or drag to resize

GM_SetLicenseKey

Use to provide the distribution license XML key that you were provided when purchasing a distribution license. Will return GM_Error_NotRegistered if the key could not be validated.

Note that this is different than a developer license file. A developer license file is good only on a single machine. You provide that via a 'GlobalMapper SDK.lic' file in your application folder on the test machine. You provide the distribution license key programmatically at application startup via this function. Do not provide the distribution license with your application as a file, make sure to embed it in the application source code itself to prevent unauthorized usage of your distribution licenses for your SDK-based application.

Syntax
GM_DLL_EXPORTED GM_Error_t32 __stdcall GM_SetLicenseKey
(
const char* aXmlKeyStr, // IN: full XML string with distribution license key
void*       aReserved   // reserved for future use, must be NULL
);