Invoke Aion BRE Methods from C/C++ Clients

To enable a C or C++ client to invoke methods of an Aion BRE (server) component, select the C or C++ Interface Layer of the Build Directives tab of the Library Properties Dialog.

Build the Aion BRE server by choose the Build item from the File menu. The compiled Aion BRE application (EXE or DLL) exposes all public methods of exported classes so that a C or C++ application can access them.

When you generate an Aion BRE application with a C or C++ interface layer, a header (.h) file is produced. Include this .h file in your C or C++ application to be able to use the Aion BRE methods that have been exposed. Once you include the generated header file in your C or C++ program, you can access any of the Aion BRE methods it references. Because the information contained in the generated header file differs depending on whether you chose C or C++ for the Interface Layer, the convention for using exported Aion BRE methods differs depending on whether you are calling them from a C or C++ program.

More Information:

Build an Aion BRE Component with an Interface Layer


Copyright © 2009 CA. All rights reserved. Email CA about this topic