For this example we will put the source code in a subdirectory called src
.
We also need a subdirectory of this called cc
to store the C++ source code.
In the cc
directory create a new text file called main
with the following contents.
#include "tbx/application.h"int main()
{ tbx::Application tbx_min_app("<TbxMin$Dir>");
tbx_min_app.run();
return 0; }
Include file for the tbx | |
Main entry point for a C++ program. | |
Create a tbx application object giving it the location of the application resources. It is this object that starts up the Toolbox and implements the event processing. | |
The application is run here. The Toolbox and Wimp events are all routed here. This routine doesn't finish until the quit event (defined in the resources above) or the quit WIMP message is received or the |