0
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
It's good programming practice to do it this way, as from the client code you can always refer to the CMyDlg::IDD without worrying what the actual constant is.
0
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
As a quote from MSDN.
Quote:
Originally Posted by MSDN
The CArchive class allows you to save a complex network of objects in a permanent binary form (usually disk storage) that persists after those objects are deleted. Later you can load the objects from persistent storage, reconstituting them in memory. This process of making data persistent is called “serialization.”
0
coderzone's Avatar, Join Date: Jul 2004
Team Leader
m_lpCmdLine Corresponds to the lpCmdLine parameter passed by Windows to WinMain. Points to a null-terminated string that specifies the command line for the application. Use m_lpCmdLine to access any command-line arguments the user entered when the application was started. m_lpCmdLine is a public variable of type LPTSTR.

Example
Code: CPP
BOOL CMyApp::InitInstance()
{
   // ...
 
   if (m_lpCmdLine[0] == _T('\0'))
   {
      // Create a new (empty) document.
      OnFileNew();
   }
   else
   {
      // Open a file passed as the first command line parameter.
      OpenDocumentFile(m_lpCmdLine);
   }
 
   // ...
}
0
rajeswaridvssnr's Avatar, Join Date: Oct 2006
Go4Expert Member
CObject
0
rajeswaridvssnr's Avatar, Join Date: Oct 2006
Go4Expert Member
Searialization, Debugging support, Runtime time class information, compatibility with collection classes.
0
rajeswaridvssnr's Avatar, Join Date: Oct 2006
Go4Expert Member
It is the base class for the MFC library message map architecture.Which maps commands/messages to the member functions to handle them. Classes derived from this are CWnd,CWinApp,CFrameWnd,CView, CDocument

Last edited by shabbir; 30Oct2006 at 14:57.. Reason: Moving question to the title
0
rajeswaridvssnr's Avatar, Join Date: Oct 2006
Go4Expert Member
Document/view architecture, which defines a program structure that relies on document objects to hold an application's data and on view objects to render views of that data. MFC provides the infrastructure for documents and views in the classes CDocument and CView.

example of SDI is a wordpad application

Last edited by shabbir; 30Oct2006 at 14:58.. Reason: Moving question to the title
0
rajeswaridvssnr's Avatar, Join Date: Oct 2006
Go4Expert Member
The frame window is the application's top-level window. It's normally a WS_OVERLAPPEDWINDOW-style window with a resizing border, a title bar, a system menu, and minimize, maximize, and close buttons.
The view is a child window sized to fit the frame window so that it becomes the frame window's client area.
The application's data is stored in the document object, a visible representation of which appears in the view.
For an SDI application, the frame window class is derived from CFrameWnd, the document class is derived from CDocument, and the view class is derived from CView or a related class such as CScrollView.
0
rajeswaridvssnr's Avatar, Join Date: Oct 2006
Go4Expert Member
Using GetDocument() function within a CView class.
0
rajeswaridvssnr's Avatar, Join Date: Oct 2006
Go4Expert Member
WinMain() is the entry point for window based applications.