Appendix C: Creating C Components
To create C components:
Define component interface and properties – using EAServer Manager, specify the component’s name, DLL name, method prototypes, transactional semantics, and threading model.
Generate C component files – C component files are the C source files that are compiled into the C component. At this time, you generate UNIX and Windows makefiles as well as Visual C++ module definition files. You use UNIX and Windows makefiles to compile the C component files into C components.
Write C components – write the method logic in the method definition for the method implementation template files.
Compile C components – compile and link the method prototypes header file, the method implementation template files, and method skeletons file to create a dynamic link library (DLL) or UNIX shared library.
Install C Components – copy the DLL or shared library to the cpplib directory of the EAServer installation.
|Copyright © 2005. Sybase Inc. All rights reserved.|