following
//the specific initialization routines you do not need.
# ifdef _AFXDLLdControls ();//Call this when using MFC in a shared DLL
# elsedControlsStatic ();//Call this when linking to MFC statically
# endif
//Change the registry key under which our settings are stored.
//TODO: You should modify this string to be something appropriate
//such as the name of your company or organization. (_ T ( Local AppWizard-Generated Applications ));
LoadStdProfileSettings ();// Load standard INI file options (including MRU)
//Register the application's document templates. Document templates
//serve as the connection between documents, frame windows and views. * pDocTemplate;=new CMultiDocTemplate (_VAR6TYPE, _CLASS (CVar6Doc), _ CLASS (CChildFrame),//custom MDI child frame_CLASS (CVar6View) ); (pDocTemplate);
//create main MDI Frame window * pMainFrame=new CMainFrame; (! pMainFrame- gt; LoadFrame (IDR_MAINFRAME)) FALSE; _pMainWnd=pMainFrame;
//Parse command line for standard shell commands, DDE, file open
CCommandLineInfo cmdInfo;
if (cmdInfo.m_nShellCommand == CCommandLineInfo :: FileNew)
{. m_nShellCommand=CCommandLineInfo :: FileNothing;
}
ParseCommandLine (cmdInfo);
//Dispatch commands specified on the command line
if (! ProcessShellCommand (cmdInfo)) FALSE;
//The main window has been initialized, so show and update it.
pMainFrame- gt; ShowWindow (m_nCmdShow); gt; UpdateWindow (); TRUE;
}
/////////////////////////////////////////////////////////////////////////////
//CAboutDlg dialog used for App AboutCAboutDlg: public CDialog
{: ();
//Dialog Data ??p>
//{{AFX_DATA (CAboutDlg) {IDD=IDD_ABOUTBOX};
//}} AFX_DATA
//ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL (CAboutDlg): void DoDataExchange (CDataExchange * pDX);// DDX/DDV support
//}} AFX_VIRTUAL
//Implementation:
//{{AFX_MSG (CAboutDlg)
//No message handlers
//}} AFX_MSG_MESSAGE_MAP ()
};
CAboutDlg :: CAboutDlg (): CDialog (CAboutDlg :: IDD)
{
//{{AFX_DATA_INIT (CAboutDlg)
//}} AFX_DATA_INIT
}
void CAboutDlg :: DoDataExchange (CDataExchange * pDX)
{:: DoDataExchange (pDX);
//{{AFX_DATA_MAP (CAboutDlg)
//}} AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP (CAboutDlg, CDialog)
//{{AFX_MSG_MAP (CAboutDlg)
//No message handlers
//}} AFX_MSG_MAP_MESSAGE_MAP ()
//App command to run the dialog
void CVar6App :: OnAppAbout ()
{aboutDlg; .DoModal ();
}
/////////////////////////////////////////////////////////////////////////////
//CVar6App message handlers
Var6Doc.cpp:
//var6Doc.cpp: implementation of the CVar6Doc class
//
# include stdafx.h
# include var6.h
# include var6Doc.h
# ifdef _DEBUG
# define new DEBUG_NEW
# undef THIS_FILEchar THIS_FILE []=__FILE __;
# endif
/////////////////////////////////////////////////////////////////////////////
//CVar6Doc
IMPLEMENT_DYNCREATE (CVar6Doc, CDocument) _MESSAGE_MAP (CVar6Doc, CDocument)
//{{AFX_MSG_MAP (CVar6Doc)
//NOTE - the ClassWizard will add and remove mapping macros here.
//DO NOT EDIT what you see in these blocks of generated code!
//}} AFX_MSG_MAP_MESSAGE_MAP ()
/////////////////////////////////////////////////////////////////////////////