All C-based AIMs created with version 4.x e-Biz Impact require modification, depending on how they were written. First, make the AIM thread safe, then remove any global or static variables:
struct globalStuff
{
int debugFlag;
char* staticVar;
};
C-based AIMs change from executables to shared libraries or DLLs. You can continue to define your own DFC functions in an IDL file along with other mandatory functions. Include the implementation of these functions in a C file. This C code file, along with the two C++ and two header files generated by the stub code generator, are used to build the bus application library. See the e-Biz Impact Application Guide for more detailed information about using the code generators for shared libraries and C-based AIMs.
See the e-Biz Impact Configurator Guide for
more detailed information about configuring custom applications
in e-Biz Impact 5.5.