home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c082_122 / 10.ddi / STEPS.ZIP / STEP1.CPP < prev    next >
Encoding:
C/C++ Source or Header  |  1992-06-10  |  696 b   |  27 lines

  1. // ObjectWindows - (C) Copyright 1992 by Borland International
  2.  
  3. #include <owl.h>
  4.  
  5. class TMyApp : public TApplication
  6. {
  7. public:
  8.   TMyApp(LPSTR AName, HINSTANCE hInstance, HINSTANCE hPrevInstance,
  9.     LPSTR lpCmdLine, int nCmdShow)
  10.     : TApplication(AName, hInstance, hPrevInstance, lpCmdLine, nCmdShow) {};
  11.   virtual void InitMainWindow();
  12. };
  13.  
  14. void TMyApp::InitMainWindow()
  15. {
  16.   MainWindow = new TWindow(NULL, Name);
  17. }
  18.  
  19. int PASCAL WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
  20.   LPSTR lpCmdLine, int nCmdShow)
  21. {
  22.   TMyApp MyApp("Sample ObjectWindows Program", hInstance, hPrevInstance,
  23.                lpCmdLine, nCmdShow);
  24.   MyApp.Run();
  25.   return MyApp.Status;
  26. }
  27.