|
|
1.1 root 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: /////////////////////////////////////////////////////////////////////////////
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.