// Tryout.cpp : Defines the class behaviors for the application. // #include "stdafx.h" #include "Tryout.h" #include "TryoutDlg.h" #ifdef _DEBUG #define new DEBUG_NEW #endif // CTryoutApp BEGIN_MESSAGE_MAP(CTryoutApp, CWinApp) ON_COMMAND(ID_HELP, &CWinApp::OnHelp) END_MESSAGE_MAP() // CTryoutApp construction CTryoutApp::CTryoutApp() { } CTryoutApp theApp; // CTryoutApp initialization BOOL CTryoutApp::InitInstance() { INITCOMMONCONTROLSEX InitCtrls; InitCtrls.dwSize = sizeof(InitCtrls); InitCtrls.dwICC = ICC_WIN95_CLASSES; InitCommonControlsEx(&InitCtrls); CWinApp::InitInstance(); AfxEnableControlContainer(); SetRegistryKey(_T("Local AppWizard-Generated Applications")); ::CoInitialize(NULL); { CTryoutDlg dlg; m_pMainWnd = &dlg; INT_PTR nResponse = dlg.DoModal(); if (nResponse == IDOK) { } else if (nResponse == IDCANCEL) { } } ::CoUninitialize(); return FALSE; }
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.
This article, along with any associated source code and files, is licensed under The Microsoft Public License (Ms-PL)