source: trunk/Verify/Verify.cpp @ 7

Revision 7, 2.0 KB checked in by lowjoel, 7 years ago (diff)

Added the source files from Verify (SVN migration commit 5)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
Line 
1// Verify.cpp : Defines the class behaviors for the application.
2//
3
4#include "stdafx.h"
5#include "Verify.h"
6#include "VerifyDlg.h"
7
8#ifdef _DEBUG
9#define new DEBUG_NEW
10#undef THIS_FILE
11static char THIS_FILE[] = __FILE__;
12#endif
13
14/////////////////////////////////////////////////////////////////////////////
15// CVerifyApp
16
17BEGIN_MESSAGE_MAP(CVerifyApp, CWinApp)
18    //{{AFX_MSG_MAP(CVerifyApp)
19        // NOTE - the ClassWizard will add and remove mapping macros here.
20        //    DO NOT EDIT what you see in these blocks of generated code!
21    //}}AFX_MSG
22    ON_COMMAND(ID_HELP, CWinApp::OnHelp)
23END_MESSAGE_MAP()
24
25/////////////////////////////////////////////////////////////////////////////
26// CVerifyApp construction
27
28CVerifyApp::CVerifyApp()
29{
30    // TODO: add construction code here,
31    // Place all significant initialization in InitInstance
32}
33
34/////////////////////////////////////////////////////////////////////////////
35// The one and only CVerifyApp object
36
37CVerifyApp theApp;
38
39/////////////////////////////////////////////////////////////////////////////
40// CVerifyApp initialization
41
42BOOL CVerifyApp::InitInstance()
43{
44    // Standard initialization
45    // If you are not using these features and wish to reduce the size
46    //  of your final executable, you should remove from the following
47    //  the specific initialization routines you do not need.
48
49#ifdef _AFXDLL
50    Enable3dControls();         // Call this when using MFC in a shared DLL
51#else
52    Enable3dControlsStatic();   // Call this when linking to MFC statically
53#endif
54
55    AfxInitRichEdit();
56
57    // initialize Eraser library
58    eraserInit();
59
60    CVerifyDlg dlg;
61    m_pMainWnd = &dlg;
62
63    try {
64        dlg.DoModal();
65    } catch (CException *e) {
66        e->ReportError(MB_ICONERROR);
67        e->Delete();
68    }
69
70    // Since the dialog has been closed, return FALSE so that we exit the
71    //  application, rather than start the application's message pump.
72    return FALSE;
73}
74
75int CVerifyApp::ExitInstance() 
76{
77    // free allocated resources
78    eraserEnd();
79    return CWinApp::ExitInstance();
80}
Note: See TracBrowser for help on using the repository browser.