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 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 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 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 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 base class for most MFC classes? http://www.allinterview.com/showanswers/16242.html CObject what is the component of CLR ? http://www.allinterview.com/showanswers/25871.html The .NET Framework provides a Run-time environment called the CLR,which runs the code and provides services that makes the development process easier.CLR does not contain components. The .NET Framework has two components i.e 1.CLR(Comman Lang 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 In VC++ How to transfer between one exe to another exe while running. http://www.allinterview.com/showanswers/36527.html Say exe1.exe is executing and from that you need to call exe2.exe. You can use WinExec(exe2.exe) in code of exe1.exe. then exe2.exe will be called when exe1 is running. you can also use CreateProcess() instead of Winexec(). Which MFC function is used to display output? http://www.allinterview.com/showanswers/16218.html AfxMessageBox 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 use of CObject::Dump function ? http://www.allinterview.com/showanswers/16244.html Dumps the contents of your object.When you write your own class, you should override the Dump function to provide diagnostic services for yourself and other users of your class. The overridden Dump usually calls the Dump function of its base 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 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