sqlany_initialize_interface function

Initializes the SQLAnywhereInterface object and loads the DLL dynamically.

Syntax
int sqlany_initialize_interface ( SQLAnywhereInterface * api, const char * optional_path_to_dll ) 
Parameters
  • api   The name of the API structure to initialize.

  • optional_path_to_dll   Optional argument that specifies a path to a DLL API.

Remarks

This function attempts to load the SQL Anywhere C API DLL dynamically and looks up all the entry points of the DLL. The fields in the SQLAnywhereInterface structure are populated to point to the corresponding functions in the DLL. If the optional path argument is NULL, the environment variable SQLANY_DLL_PATH is checked. If the variable is set, the library attempts to load the DLL specified by the environment variable. If that fails, the interface attempts to load the DLL directly (this relies on the environment being setup correctly).

Returns
See also