| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Document/View architecture, Creating Single Document Template Application
I have created a Single Document Template Application using MFC AppWizard.
The AppWizard has automatically added the following code to the InitInstance method of the Application class: CSingleDocTemplate* pDocTemplate; pDocTemplate = new CSingleDocTemplate( IDR_MENU1, RUNTIME_CLASS(CMyDocument), RUNTIME_CLASS(CMyMainWindow), // main SDI frame window RUNTIME_CLASS(CMyView)); AddDocTemplate(pDocTemplate); CCommandLineInfo cmdInfo; ParseCommandLine(cmdInfo); if (!ProcessShellCommand(cmdInfo)) return FALSE; Question 1 :: I coudnt understand the code written after AddDocTemplate method is called. Why we need to call ParseCOmmandLine and then ProcessShellCommand? Can I have any web links, which teach how to create single Document Template application without using the AppWizard. Thanks, Jell |
![]() |
| Viewing: Dev Articles Community Forums > Programming > C/C++ Help > Document/View architecture, Creating Single Document Template Application |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|