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

Here's the smallest application you can create.

It includes the correct header file, creates a TApplication object, and calls that object's TApplication::Run() function.

#include <owl\applicat.h>
int OwlMain(int argc, char* argv[])
{
return TApplication("Wow!").Run();
}
Definition of class TApplication.
STDAPI_(owl::TDocTemplate **) GetDocTemplateHead(owl STDAPI_(owl::TModule **) GetModulePtr(owl in OwlMain)(int argc, TCHAR *argv[])
Main entry point for an Owl application.
Definition module.h:391

This example creates a Windows application having a main window with the caption "Wow!" You can resize, move, minimize, maximize, and close this window. In a real application, you would derive a new class for the application to add more functionality. Notice that the only function you have to call explicitly in this example is the Run function.