Go4Expert Founder
29May2006,12:20   #11
shabbir's Avatar
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.
Go4Expert Founder
29May2006,12:25   #12
shabbir's Avatar
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.”
Team Leader
3Jul2006,12:06   #13
coderzone's Avatar
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);
   }
 
   // ...
}
Go4Expert Member
30Oct2006,14:35   #14
rajeswaridvssnr's Avatar
CObject
Go4Expert Member
30Oct2006,14:37   #15
rajeswaridvssnr's Avatar
Searialization, Debugging support, Runtime time class information, compatibility with collection classes.
Go4Expert Member
30Oct2006,14:49   #16
rajeswaridvssnr's Avatar
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
Go4Expert Member
30Oct2006,14:53   #17
rajeswaridvssnr's Avatar
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
Go4Expert Member
30Oct2006,15:03   #18
rajeswaridvssnr's Avatar
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.
Go4Expert Member
30Oct2006,15:07   #19
rajeswaridvssnr's Avatar
Using GetDocument() function within a CView class.
Go4Expert Member
30Oct2006,15:08   #20
rajeswaridvssnr's Avatar
WinMain() is the entry point for window based applications.