IDL Programming > Tasks > Distributing IDL Applications > Licensing Options for Callable IDL Applications

Licensing Options for Callable IDL Applications

Refer to Licensing Options for Runtime Mode Applications. The licensing options and steps are the same for callable IDL applications, with the following exception that applies to embedded licensing:

  1. After you receive your license information, make the following changes to your application code, in the module from which you are initializing IDL. These instructions assume your code is written in C.
  2. Define the licensing information for your application. Although your licensing information is individualized, it will resemble the following:

    /* Callable Application license for: myapp, My App */
    /* License built for IDL Version 7.1 */
    static char *initStr[] = {
       "12345678abcdabcd",
       "12345678abcdabcd",
       "12345678abcdabcd",
       "12345678abcdabcd",
       "12345678abcdabcd",
       "" };
  3. Allocate the following structure in the callable application.:
  4. IDL_INIT_DATA init_data;
  5. Initialize the structure in the callable application before IDL initialization:
  6. init_data.applic = initStr;
    init_data.options |= IDL_INIT_APPLIC;
  7. Initialize IDL with the following statement (all platforms):
  8. if (!IDL_Initialize(&init_data))
       return(FALSE);