Get Started > Setting Up the Development Environment > Unlocking the Creo Object TOOLKIT C++ Application
Unlocking the Creo Object TOOLKIT C++ Application
 
Before you distribute your application executable to the end user, you must unlock it. This enables the end user to run your applications without having Creo Object TOOLKIT C++ as an option.
To unlock a Creo Object TOOLKIT C++ application, you must have both the Creo Object TOOLKIT C++ license and the Creo TOOLKIT license.
* 
The Creo Object TOOLKIT C++ license is now a part of the Creo TOOLKIT license pack. If you are unable to unlock the Creo Object TOOLKIT C++ applications, request for the updated license pack from the Technical Support page.
To unlock your application, enter the following command:
<creo_loadpoint>/<app_name>/bin/protk_unlock.bat [-cxx] <path
to executables or DLLs to unlock>
where, <app_name>Parametric for Creo Parametric .
* 
The Creo Object TOOLKIT C++ is unlocked even if you do not specify the -cxx option.
You can provide more than one Creo TOOLKIT binary file on the command line.
* 
Once you have unlocked the executable, you can distribute your application program to Creo Object TOOLKIT C++ users in accordance with the license agreement.
Using protk_unlock.bat requires a valid Creo TOOLKIT license to be present and unused on your license server. If the Creo Parametric license server is configured to add a Creo TOOLKIT license as a startup option, protk_unlock.bat will cause the license server to hold only the Creo TOOLKIT option for 15 minutes. The license will not be available for any other development activity or unlocking during this period.
If the only available Creo TOOLKIT license is locked to a Creo Parametric license, the entire Creo Parametric license including the Creo TOOLKIT option will be held for 15 minutes. PTC recommends you configure your Creo TOOLKIT license option as a startup option to avoid tying up your Creo Parametric licenses.
* 
Only one license will be held for the specified time period, even if multiple applications were successfully unlocked.
Your Creo Object TOOLKIT C++ application may have calls to Creo TOOLKIT functions, which require one or more advanced licensing options. Refer to the section Using Creo Object TOOLKIT C++ with Creo TOOLKIT for more information on using C++ and C functions together, in the same application.
In such cases, you will require the advanced Creo TOOLKIT license to unlock the application. The protk_unlock.bat application will check for the availability of the advanced license option. If the option is not available, unlocking will not be permitted. If the option is available, the application is unlocked. Advanced options are not held on the license server for any length of time. Refer to the Advanced Licensing Options section, in Creo TOOLKIT User's Guide for more information on advanced licensing.
If the required licenses are available, the protk_unlock.bat application will unlock the Creo Object TOOLKIT C++ application immediately. An unlocked application does not require any of the Creo TOOLKIT license options to run. Depending on the functionality invoked by the application, it may still require certain Creo Parametric options to work correctly.
* 
Once an application binary has been unlocked, it should not be modified in any way (which includes statically linking the unlocked binary with other libraries after the unlock). The unlocked binary must not be changed or else Creo Parametric will again consider it locked.
Was this helpful?