OWLNext    7.0
Borland's Object Windows Library for the modern age
Loading...
Searching...
No Matches
Creating an application object

You can create a TApplication object using one of two constructors.

The most commonly used constructor is this:

TApplication(const char far* name);

This version of the TApplication constructor takes a string, which becomes the application's name. If you don't specify a name, by default the constructor names it the null string. TApplication uses this string as the application name.

The second version of the TApplication constructor lets you specify a number of parameters corresponding to the parameters normally passed to the WinMain function:

TApplication(const char far* name,
const char far* cmdLine,
int cmdShow){}

You can use this constructor to pass command parameters to the TApplication object.