Top MFC Interview Questions :: ALLInterview.com http://www.allinterview.com Top MFC Interview Questions en-us How to convert a CString variable to char* or LPTSTR? http://www.allinterview.com/showanswers/16195.html GetBuffer What is the difference between Extension DLL and Regular DLL? http://www.allinterview.com/showanswers/32234.html An extension dll can be used in the same language as it is written (for example C++ in combination with MFC). This means it is easier to create them, and you can even export whole classes from these dll's. A regular dll is a dll that ca what is message loop how mfc does it internally? http://www.allinterview.com/showanswers/29044.html The windows application enters the message loop within Winmain to process various windows messages the OS posts to a message queue.The message loop, "Loops" until its receives a WM_QUIT message. It uses GetMessage and PeekMessage to Tell us something about MFC? http://www.allinterview.com/showanswers/18177.html MFC is the C++ class library Microsoft provides to place an object-oriented wrapper around the Windows API. What is the use of message map ? http://www.allinterview.com/showanswers/16241.html Message map is a macro used to handle messgaes by calling appropriate functions. i.e BEGIN_MESSAGE_MAP(CMywnd,CFrameWnd) ON_WM_PAINT() END_MESSAGE_MAP Here OnPaint method will be called whn WM_PAINT message comes. What?s the difference between Modal and Modeless Dialog? http://www.allinterview.com/showanswers/16091.html Modal dialog box captures the message loop. where as model less does not. Model dialog does not allow its parent window unless it is colosed. where as modelless it allows. what is the difference between SDI and MDI http://www.allinterview.com/showanswers/60212.html SDI can load only 1 document at a time,however it can have multiple views in the same window using splitter windows property. example is a notepad in windows. An MDI application has multiple child windows, each of which corresponds to an in Explain Doc/View architecture http://www.allinterview.com/showanswers/57422.html The Document/View architecture is the foundation used to create applications based on the Microsoft Foundation Classes library. It allows you to make distinct the different parts that compose a computer program including what the user sees as par What is thread & process? http://www.allinterview.com/showanswers/16168.html Thread will perform multiple task(process) at a time.process is single phase. What is the use of OninitDialog ? http://www.allinterview.com/showanswers/16174.html All your initialization for your dialog can be inside "OnInitDialog". Basically to set default / preset values to your dialog controls. What is the base class for most MFC classes? http://www.allinterview.com/showanswers/16242.html CObject What is the difference between the ASSERT and VERIFY macros? http://www.allinterview.com/showanswers/16243.html ASSERT for Debug. Verify for Release What is the difference between the Encapsulation and Abstraction http://www.allinterview.com/showanswers/68861.html to include data from an upper layer protocol in a lower layer protocol is called encapsulation abstraction is a mechanism and practice to reduce and factor out details so that one can focus on a few concepts at a time. What is the use of CCmdTarget ? http://www.allinterview.com/showanswers/16152.html CCmdTraget has the implementation of the Message map. Message map routes the commands & messages to the member functions you write to handle them. Key frame work classes derived from the CCmdtarget includes CWnd, Cview etc.. If you need what is the use of AFX_MANAGE_STATE ? http://www.allinterview.com/showanswers/16161.html By default, MFC uses the resource handle of the main application to load the resource template. If you have an exported function in a DLL, such as one that launches a dialog box in the DLL, this template is actually stored in the DLL module. Y