Invoke C Functions from Aion BRE

From an Aion BRE application, you can also invoke functions written in C. To invoke an external C function from Aion, you must know the name and location of the C library file, as well as the name and calling convention for the referenced C procedure.

Many methods defined in the Aion BRE-supplied libraries happen to be external methods. They are used to access low-level system functions to control the client environment. For example, WinLib serves as an interface to the graphical user interface functions of Windows, while DataLib provides access to the interface functions of various database drivers.

Before accessing an external C method, it must have already been implemented in C and linked to a DLL.

Note: Both class and instance methods can be external methods. There are no specialization constraints. You can specialize a method to be either internal or external.


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