Get Started > Setting Up the Development Environment > Registering a Creo Object TOOLKIT C++ Application
Registering a Creo Object TOOLKIT C++ Application
 
Registering a Creo Object TOOLKIT C++ application means providing information about the files that form the Creo Object TOOLKIT C++ application to Creo. Creo application will find and read the registry file. Refer to the section Registry File for more information on registry file.
Creo application searches for the registry file in the following order:
1. A file called creotk.dat or protk.dat in the current directory
2. A file named in a creotk.dat, protk.dat, or toolkit_registry_file statement in the Creo application configuration file
3. A file called creotk.dat or protk.dat in the directory <creo_loadpoint>\<datecode>\Common Files\<machine type>\text\<language>
4. A file called creotk.dat or protk.dat in the directory <creo_loadpoint>\<datecode>\Common Files\text
In the last two options, the variables are as follows:
<creo_loadpoint>—The Creo loadpoint (not the Creo Object TOOLKIT C++ loadpoint)
<machine type>—The machine-specific subdirectory such as x86e_win64 or i486_nt
<language>—The language of Creo application with which the Creo Object TOOLKIT C++ application is used such as usascii (English), german, or japanese
If more than one registry file with the same filename exists in this search path, Creo Object TOOLKIT C++ stops searching after finding the first instance of the file and starts all the Creo Object TOOLKIT C++ applications specified in it. If more than one registry file having different filenames exists in this search path, Creo application stops searching after finding one instance of each of them and starts all the Creo Object TOOLKIT C++ applications specified in them.
Option 1 is used normally during development, because the Creo Object TOOLKIT C++ application is seen only if you start Creo application from the specific directory that contains creotk.dat or protk.dat.
Option 2 or 4 is recommended when making an end-user installation, because it makes sure that the registry file is found irrespective of the directory used to start Creo application.
Option 3 enables you to have a different registry file for each platform, and for each Creo application language. This is more commonly used for Creo Object TOOLKIT C++ applications that have a platform dependent setup.
Was this helpful?