OWLNext 7.0
Borland's Object Windows Library for the modern age
|
You might need to access an application object from outside that object's scope.
For example, you might need to call one of the object's member functions from a function in a derived window class. But because the window object is not in the same scope as the application object, you have no way of accessing the application object. In this case, you must find the application object. You don't have to provide an explicit WinMain function for your ObjectWindows applications; you can instead use the function OwlMain. OwlMain lets you use int argc and char** argv parameters and return an int, just like a traditional C or C++ program with a main function.