//---------------------------------------------------------------------------- // ObjectWindows - (C) Copyright 1991, 1993 by Borland International //---------------------------------------------------------------------------- #include #include #include #include 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(); }