Reference Guide
Licensing / Unlocking GdPicture.NET
In This Topic
    Unlocking GdPicture.NET
    In This Topic

    Summary

    Unlocking the GdPicture.NET toolkit is extremely simple: it is done via code in your application.
    You have to create a LicenseManager object, then call the RegisterKEY() method with the license key you own.

    You need to do this on the load of your form, basically before you use any of the functions or features of the GdPicture.NET toolkit.

    If your key is a trial license key all the features of GdPicture will be activated.
     You just purchased a GdPicture.NET license
    You won't be able to use the SDK for development purpose until it has been properly installed and activated through the LicenseManager.exe application that is located in the installation folder.
    For more information about the activation process, please refer to the Support FAQ and the Activating your commercial license for development purpose documentation.
    Copy Code
    'Creating a License Manager object
    Dim oLicenseManager As New LicenseManager
    oLicenseManager.RegisterKEY("LICENSE_KEY")
    Copy Code
    //Creating a License Manager object
    LicenseManager oLicenseManager = new LicenseManager();
    oLicenseManager.RegisterKEY("LICENSE_KEY");
    Copy Code
    CLicenseManager oLicenseManager;
    oLicenseManager.CreateDispatch(L"GdPicture14.LicenseManager");
    oLicenseManager.RegisterKEY(L"LICENSE_KEY");
    Copy Code
    BSTR bstrLicense = ::SysAllocString(L"LICENSE_KEY");
    if (bstrLicense != NULL)
    {
       _LicenseManagerPtr oLicenseManager(__uuidof(LicenseManager));
       VARIANT_BOOL result = oLicenseManager->RegisterKEY(bstrLicense);
       ::SysFreeString(bstrLicense);
    }
    Copy Code
    BSTR bstrLicense = ::SysAllocString(L"LICENSE_KEY");
    if (bstrLicense != NULL)
    {
       _LicenseManagerPtr oLicenseManager;
       oLicenseManager = (_LicenseManagerPtr)CreateComObject(CLSID_LicenseManager);
       oLicenseManager->RegisterKEY(bstrLicense);
       ::SysFreeString(bstrLicense);
       bstrLicense = NULL;
    }
    Copy Code
    var
       LicenseManager1: Variant;
    begin
       LicenseManager1 := CreateOleObject('GdPicture14.LicenseManager');
       LicenseManager1.RegisterKey('LICENSE_KEY');
    Copy Code
    var oLicenseManager;
    oLicenseManager = new ActiveXObject("GdPicture14.LicenseManager");
    oLicenseManager.RegisterKey("LICENSE_KEY");
    Copy Code
    long ll_result
    OLEObject oLicenseManager
    oLicenseManager = CREATE OLEObject
    ll_result = oLicenseManager.ConnectToNewObject("GdPicture14.LicenseManager")
    oLicenseManager.RegisterKey("LICENSE_KEY")
    Copy Code
    Dim oLicenseManager As New LicenseManager
    Call oLicenseManager.RegisterKEY("LICENSE_KEY")
    Copy Code
    Dim oLicenseManager As New GdPicture_NET_14.LicenseManager
    oLicenseManager.RegisterKey ("LICENSE_KEY")
     You just purchased a GdPicture.NET license and an additional plugin license
    You won't be able to use the SDK for development purpose until it has been properly installed and activated through the LicenseManager.exe application that is located in the installation folder.
    For more information about the activation process, please refer to the Support FAQ and the Activating your commercial license for development purpose documentation.
    Copy Code
    'Creating a License Manager object
    Dim oLicenseManager As New LicenseManager
    oLicenseManager.RegisterKEY("SDK_LICENSE_KEY")
    oLicenseManager.RegisterKEY("PLUGIN_LICENSE_KEY")
    Copy Code
    //Creating a License Manager object
    LicenseManager oLicenseManager = new LicenseManager();
    oLicenseManager.RegisterKEY("SDK_LICENSE_KEY");
    oLicenseManager.RegisterKEY("PLUGIN_LICENSE_KEY");
    Copy Code
    CLicenseManager oLicenseManager;
    oLicenseManager.CreateDispatch(L"GdPicture14.LicenseManager");
    oLicenseManager.RegisterKEY(L"SDK_LICENSE_KEY");
    oLicenseManager.RegisterKEY(L"PLUGIN_LICENSE_KEY");
    Copy Code
    BSTR bstrLicenseSDK = ::SysAllocString(L"SDK_LICENSE_KEY");
    BSTR bstrLicensePlugin = ::SysAllocString(L"PLUGIN_LICENSE_KEY");
    if ((bstrLicenseSDK != NULL) && (bstrLicensePlugin != NULL))
    {
       _LicenseManagerPtr oLicenseManager(__uuidof(LicenseManager));
       VARIANT_BOOL result = oLicenseManager->RegisterKEY(bstrLicenseSDK);
       VARIANT_BOOL result = oLicenseManager->RegisterKEY(bstrLicensePlugin);
       ::SysFreeString(bstrLicenseSDK);
       ::SysFreeString(bstrLicensePlugin);
    }
    Copy Code
    BSTR bstrLicenseSDK = ::SysAllocString(L"SDK_LICENSE_KEY");
    BSTR bstrLicensePlugin = ::SysAllocString(L"PLUGIN_LICENSE_KEY");
    if ((bstrLicenseSDK != NULL) && (bstrLicensePlugin != NULL))
    {
       _LicenseManagerPtr oLicenseManager;
       oLicenseManager = (_LicenseManagerPtr)CreateComObject(CLSID_LicenseManager);
       oLicenseManager->RegisterKEY(bstrLicenseSDK);
       oLicenseManager->RegisterKEY(bstrLicensePlugin);
       ::SysFreeString(bstrLicenseSDK);
       bstrLicenseSDK = NULL;
       ::SysFreeString(bstrLicensePlugin);
       bstrLicensePlugin = NULL;
    }
    Copy Code
    var
       LicenseManager1: Variant;
    begin
       LicenseManager1 := CreateOleObject('GdPicture14.LicenseManager');
       LicenseManager1.RegisterKey('SDK_LICENSE_KEY');
       LicenseManager1.RegisterKey('PLUGIN_LICENSE_KEY');
    Copy Code
    var oLicenseManager;
    oLicenseManager = new ActiveXObject("GdPicture14.LicenseManager");
    oLicenseManager.RegisterKey("SDK_LICENSE_KEY");
    oLicenseManager.RegisterKey("PLUGIN_LICENSE_KEY");
    Copy Code
    long ll_result
    OLEObject oLicenseManager
    oLicenseManager = CREATE OLEObject
    ll_result = oLicenseManager.ConnectToNewObject("GdPicture14.LicenseManager")
    oLicenseManager.RegisterKey("SDK_LICENSE_KEY")
    oLicenseManager.RegisterKey("PLUGIN_LICENSE_KEY")
    Copy Code
    Dim oLicenseManager As New LicenseManager
    Call oLicenseManager.RegisterKEY("SDK_LICENSE_KEY")
    Call oLicenseManager.RegisterKEY("PLUGIN_LICENSE_KEY")
    Copy Code
    Dim oLicenseManager As New GdPicture_NET_14.LicenseManager
    oLicenseManager.RegisterKey ("SDK_LICENSE_KEY")
    oLicenseManager.RegisterKey ("PLUGIN_LICENSE_KEY")
    See Also