home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C Programming Starter Kit 2.0
/
SamsPublishing-CProgrammingStarterKit-v2.0-Win31.iso
/
bc45
/
instance.pak
/
INSTANCE.CPP
next >
Wrap
C/C++ Source or Header
|
1997-07-23
|
1KB
|
37 lines
//----------------------------------------------------------------------------
// 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();
}