Environment > Distributing IDL Applications > Callable 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.

   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",

   "" };

2. Allocate the following structure in the callable application.:

   IDL_INIT_DATA init_data;

3. Initialize the structure in the callable application before IDL initialization:

   init_data.applic = initStr;

   init_data.options |= IDL_INIT_APPLIC;

4. Initialize IDL with the following statement (all platforms):

   if (!IDL_Initialize(&init_data))

   return(FALSE);