27 static char THIS_FILE[] = __FILE__;
32 BEGIN_MESSAGE_MAP(
Magic, CWinApp)
34 ON_COMMAND(ID_APP_ABOUT, OnAppAbout)
39 ON_COMMAND(ID_FILE_NEW, CWinApp::OnFileNew)
40 ON_COMMAND(ID_FILE_OPEN, CWinApp::OnFileOpen)
42 ON_COMMAND(ID_FILE_PRINT_SETUP, CWinApp::OnFilePrintSetup)
49 void Print(const
char* msg, ...);
51 static
void PrintLogHeader()
53 ErrLog = fopen(
"errlog.txt",
"w");
54 Print(
"+====================================================================+\n");
55 Print(
"| Magic 2.0 |\n");
57 VD3D_describe_things = 4;
70 Print(
"+====================================================================+\n");
71 Print(
" END OF LINE.\n");
88 AfxEnableControlContainer();
104 SetRegistryKey(_T(
"Local AppWizard-Generated Applications"));
106 LoadStdProfileSettings();
111 CSingleDocTemplate* pDocTemplate;
112 pDocTemplate =
new CSingleDocTemplate(
117 AddDocTemplate(pDocTemplate);
120 CCommandLineInfo cmdInfo;
121 ParseCommandLine(cmdInfo);
124 if (!ProcessShellCommand(cmdInfo))
128 m_pMainWnd->ShowWindow(SW_SHOW);
129 m_pMainWnd->UpdateWindow();
160 DECLARE_MESSAGE_MAP()