Top VC++ Interview Questions :: ALLInterview.com http://www.allinterview.com Top VC++ Interview Questions en-us 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 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?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 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 Why Array Index starts from Zero http://www.allinterview.com/showanswers/70478.html This boils down to the concept of Binary digits. Take an array size of 64 for example. We start from 0 and end at 63. We require 6 bits.But, if we were to start from 1 and end at 64, we would require 7 bits to store the same number, thus incr 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 thread & process? http://www.allinterview.com/showanswers/16168.html Thread will perform multiple task(process) at a time.process is single phase. How to convert a CString variable to char* or LPTSTR? http://www.allinterview.com/showanswers/16195.html GetBuffer 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 In-proc? http://www.allinterview.com/showanswers/16127.html In-proc server is a COM component, when instance is the server is loaded into the caller process space. In-Proc server can be easily identified by .dll extension. Out-of-Proc server is a COM component that run in its own process space and fo 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 the difference between GetMessage and PeekMessage ? http://www.allinterview.com/showanswers/16172.html The major difference between the two is that GetMessage() doesn't return until it finds a message to retrieve from the Application Queue, this allows us to free up precious CPU usage for other programs to use. PeekMessage() returns immediate What is the use of UpdateData funciton ? http://www.allinterview.com/showanswers/16173.html UpdateData function is used to get or set the values in your appropriate control variables. UpdateData ( FALSE ) would update the data from control variables to control, while UpdateData ( TRUE ) would assing the data from controls to contro 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 Types of DLL's http://www.allinterview.com/showanswers/68863.html 3 types of DLL 1.SDK DLL:Old type 2.Extension DLL: These DLL’s exposes variables and functions to the client application. It can expose C++ functions and C++ classes to be used in your application. 3.Regular DLL: MFC extension DLL’s can