OWLNext    7.0
Borland's Object Windows Library for the modern age
Loading...
Searching...
No Matches
Application and module objects overview

ObjectWindows encapsulates Windows applications and DLL modules using the TApplication and TModule classes, respectively.

TModule Objects

TModule objects do the following:

  • Encapsulate the initialization and closing functions of a Windows DLL.
  • Contain the hInstance and lpCmdLine parameters, which are equivalent to the parameters of the same name that are passed to the WinMain function in a non-ObjectWindows application. Note that both WinMain and LibMain have these two parameters in common. Unless you're working with a DLL, you do not need to create a TModule object yourself.

TApplication Objects

TApplication objects build on the basic functionality provided by TModule. TApplication objects do the following:

  • Encapsulate the initialization, run-time management, and closing functions of a Windows application
  • Contain the values of the hPrevInstance and nCmdShow parameters, which are equivalent to the parameters of the same name that are passed to the WinMain function in a non-ObjectWindows application.

Because TApplication is based on TModule, it also has all the functionality contained in TModule.

In addition, the TApplication object contains functions to easily load and use the Borland Custom Controls Library and the Microsoft 3-D Controls Library. There is also a function that automatically subclasses standard controls as Microsoft 3-D controls.

See Also