Initialize the calibration library using the configuration in the specified file. Initialization also loads and verifies that the license file is valid. The license file should be in the same directory as the library DLL files.

Parameters:

configFilename

The name of the configuration file to initialize with.

Return Value:        

Success or failure.    If the function fails use GetErrorMessage to get the specific errors associated with the failure.

Prototype Signature:

success Initialize(charconfigFilename);


An example of how this function could be used is shown below.

#include <malloc.h>
#include <string.h>
#include "api.h"

int main()
{
   success successful;
   int bufferLen = 1024;
   char* responseBuffer = malloc(bufferLen);
   int bytesCopied;

   //Initialize the library with a specific configuration file
   successful = Initialize("C:\\Temp\\MyConfig.ini");
   if(!successful)
   {
       //Get the comma separated list of errors that have occured
       bytesCopied = GetErrorMessage(responseBuffer, bufferLen);
       if(bytesCopied > 0)
           printf(responseBuffer);
   }
}