Appendix D Creating C Components


Procedure for creating C components

To create C components:

  1. Define component interface and properties - Using the Jaguar Manager, specify the component's name, DLL name, method prototypes, transactional semantics, and threading model.
  2. 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 NT makefiles as well as Visual C++ module definition files. You use UNIX and NT makefiles to compile the C component files into C components.
  3. Write C components - Write the method logic in the method definition for the method implementation template files.
  4. 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.
  5. Install C Components - Copy the DLL or shared library to the cpplib directory of the Jaguar installation.

 


Copyright © 2000 Sybase, Inc. All rights reserved.