Top VC++ Interview Questions :: ALLInterview.com http://www.allinterview.com Top VC++ 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 Win32? http://www.allinterview.com/showanswers/121.html Win32 refers to Microsoft 32 bit Windows API. Win32 Applications are programs which are built with the Win32 API. what is the difference between MFC and Win32 http://www.allinterview.com/showanswers/56580.html Win32 is a set of Windows APIs written in C and MFC is a framework built arround Win32. All MFC functions internally use Win32 APIs. And MFC is written in C++. 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 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