OWLNext 7.0
Borland's Object Windows Library for the modern age
|
An instance of the TModule class serves as the object-oriented interface for an ObjectWindows DLL. TModule member functions provide support for window and memory management, and process errors.
The following code example shows the declaration and initialization of a TModule object. This example is conditionalized so that either 16-bit
If your DLL requires additional initialization and cleanup, you can perform this processing in your LibMain, DllEntryPoint, or WEP functions. A better method, though, is to derive a TModule class, define data members for data global to your DLL within the class, and perform the required initialization and cleanup in its constructor and destructor.
After you have compiled and linked your DLL, use IMPLIB to generate an import library for your DLL. This import library will list all exported member functions from your shared classes as well as any ordinary functions you have exported.