All applications that use the API functions must initialize the Form Library to ensure correct error and memory handling behavior. The sample application does this in a separate method calledinitialize. In turn, initialize calls the Form Library function IFSInitialize and passes it the name of the current program.
Define the initialize function to call the function IFSInitialize.IFSInitialize initializes the API environment.
r_short initialize(void *theInstance)
/* Call IFSInitialize. The parameters are:
1. SampleAp : the name of the application being run.
2. 1.0.0 : the version of the application being run.
3. 2.6.0 : the version of the API to use by default.
An error code will be returned if there is a problem. */
error =IFSInitialize("SampleAp", "1.0.0", "2.6.0");
if (error != OK)
reportError("IFSInitialize error %hd.\n", (r_short)error);
Parent topic: Developing an application in C
Previous topic: Setting Up Your Application
Next topic: Loading a Form