Because the Advantage Client Engine is DLL and shared object based, the Advantage Client Engine API is accessible to any Windows or Linux-based development platform that allows DLL or shared object calls. Although virtually any environment can call the Advantage Client Engine, the methods they use vary widely. This section outlines steps to enable Advantage Client Engine calls in a few representative development environments. If you are using a platform not listed here, refer to that platform's documentation on making DLL or shared object calls.
In order to compile your application using the Advantage Client Engine, you will need to #include "ACE.H" in all source files that use the Advantage Client Engine API. Please note that ace.h uses some macros that are in <windows.h>, so be sure to #include <windows.h> (or an equivalent header file) before the include of ace.h for each file.
To link, specify the exports library ACE32.LIB or ACE64.LIB in the project makefile or from the command line for the compiler or linker. Please see your compiler documentation for examples on linking external libraries.
It is also possible to load the Advantage Client Engine DLLs at runtime by using the LoadLibrary and GetProcAddress Windows functions if desired.
In order to compile your application using the Advantage Client Engine, you will need to #include "ace.h" in all source files that use the Advantage Client Engine API.
To link, specify the ACE shared object using the –l option. For example:
gcc –o mytest main.c -lace
To link to a specific version of the Advantage Client Engine, specify the soname with version information. For example, to require your application to use version 6.11 of ACE use the following command:
gcc –o mytest main.c –lace.6.11
It is also possible to load the Advantage Client Engine shared object at runtime by using the dlopen and dlsym functions if desired.
Using the Advantage Client Engine with Delphi/Kylix requires specifying the Advantage Client Engine in the 'Uses' statement. Make sure to include the ace.pas file in your project or copy the .pas file into a directory in Kylix/Delphi's Library Path (reachable from the Environment Options-Library Tab)
Microsoft Visual Basic
To use the Advantage Client Engine with Microsoft Visual Basic, add ACE32.BAS to your VB project. The 'Declare Function' statement in the ACE32.BAS file shows the type and number of all parameters to each function in the Advantage Client Engine API and the definitions for all Advantage Client Engine constants.