Build with the Visual C++ IDE  Debug C components

Appendix C: Creating C Components

The module definition (.def) file

EAServer Manager generates a .def file for your component. Visual C++ requires a module definition file that specifies which functions are exported from a DLL and some options that control how the DLL is loaded into memory. Module definition files end with the extension .def.

For most projects, you can use the generated file as is. In some cases, you may want to edit settings other than those in the EXPORTS section. For example, your component may perform better with a smaller or larger HEAPSIZE setting.

Never edit the generated function names in the EXPORTS section of the .def file for a C component–these names are required to execute the DLL in EAServer. For each method in your component, the changed name is:

__skl_Comp_v_1_0_method




Copyright © 2005. Sybase Inc. All rights reserved. Debug C components

View this book as PDF