home *** CD-ROM | disk | FTP | other *** search
/ Programming Languages Suite / ProgLangD.iso / C++-7 / DISK8 / MFC / SAMPLES / OCLIENT / OCLIENT.CP$ / oclient
Encoding:
Text File  |  1992-01-15  |  1.1 KB  |  46 lines

  1. // This is a part of the Microsoft Foundation Classes C++ library.
  2. // Copyright (C) 1992 Microsoft Corporation
  3. // All rights reserved.
  4. //
  5. // This source code is only intended as a supplement to the
  6. // Microsoft Foundation Classes Reference and Microsoft
  7. // QuickHelp documentation provided with the library.
  8. // See these sources for detailed information regarding the
  9. // Microsoft Foundation Classes product.
  10.  
  11. // OCLIENT.CXX : main client app
  12.  
  13. #include "oclient.h"
  14. #include "mainwnd.h"
  15.  
  16. /////////////////////////////////////////////////////////////////////////////
  17. // Main app class
  18.  
  19. class CMyApp : public CWinApp
  20. {
  21. public:
  22.     CMyApp() : CWinApp("ole client") { }
  23.  
  24. // Overrides
  25.     virtual BOOL InitInstance();
  26.  
  27. } myApp;
  28.  
  29. CString strUntitled;
  30.  
  31. BOOL CMyApp::InitInstance()
  32. {
  33.     CMainWnd * pWnd = new CMainWnd();
  34.  
  35.     VERIFY(strUntitled.LoadString(IDS_UNTITLED));
  36.  
  37.     m_pMainWnd = pWnd;
  38.     pWnd->SetTitle();
  39.     pWnd->ShowWindow(m_nCmdShow);
  40.     pWnd->UpdateWindow();
  41.  
  42.     return TRUE;
  43. }
  44.  
  45. /////////////////////////////////////////////////////////////////////////////
  46.