home *** CD-ROM | disk | FTP | other *** search
- //----------------------------------------------------------------------------
- // ObjectWindows - (C) Copyright 1991, 1993 by Borland International
- //----------------------------------------------------------------------------
- #include <owl\owlpch.h>
- #include <owl\applicat.h>
- #include <owl\framewin.h>
- #include <string.h>
-
- class TTestApp : public TApplication {
- public:
- TTestApp(): TApplication("Instance Tester")
- {WindowTitle = "Additional Instance";}
-
- protected:
- string WindowTitle;
-
- //
- // With per-instance data (supported under NT), every instance looks
- // like the first since each has its own independent data segment & cannot
- // share segments, i.e. GetInstanceData() is not supported.
- //
- void InitApplication()
- #if defined(__WIN32__)
- {WindowTitle = "An Instance";}
- #else
- {WindowTitle = "First Instance";}
- #endif
-
- void InitMainWindow() {MainWindow = new TFrameWindow(0, WindowTitle.c_str());}
- };
-
- int
- OwlMain(int /*argc*/, char* /*argv*/ [])
- {
- return TTestApp().Run();
- }
-