मंगलवार, 25 मई 2010

vc++ interview Questions

What API used to hide window
--------------------------------------------------------------------------------

ShowWindow(SW_HIDE);

How can we limit the size of window


void myclass::OnSizing(UINT fwSide, LPRECT pRect)
{
CDialog::OnSizing(fwSide, pRect);
if ((pRect->right - pRect->left) <= MIN_WIDTH)
pRect->right = pRect->left+MIN_WIDTH;


if ((pRect->bottom - pRect->top)<= MIN_HEIGHT)
pRect->bottom = pRect->top+MIN_HEIGHT;
}



What is the function to repaint a
UpdateWindow() will immediately send WM_PAINT message.


What is the Function entry for DLL
BOOL WINAPI DllMain(
HINSTANCE hinstDLL, // handle to DLL module
DWORD fdwReason, // reason for calling function
LPVOID lpReserved ) // reserved

Note that this is optional,DLL can optionally specify an entry-point function. If present, the system calls the entry-point function whenever a process or thread loads or unloads the DLL. It can be used to perform simple initialization and cleanup tasks. For example, it can set up thread local storage when a new thread is created, and clean it up when the thread is terminated.

If you are linking your DLL with the C run-time library, it may provide an entry-point function for you, and allow you to provide a separate initialization function.



What is Win32
Win32 is the 32-bit API for the 32 bit versions of Windows


Win 3.1 supports which type of multi

Explain the System call executable binary file into a process ?


Write About send message and post message ?


Explain about GDI object?


What Message displayed when a window is destroyed ?


What are all the situations where the /GS compiler is not applied. 
 Explain about InitApplication()? 
 What is CArchive class does? 
 Explain the program flow for a MFC based application ? 
 SAVING WINDOWS AS BITMAP 
 HOW to Make ActiveX controls Safe for scripting/ Safe for Initialization 
 Explain about regex_search function? 
 Discuss about the stack based buffer over run detection in VC++? 
 Can we declare a static function as virtual? 
 Explain about VC++? 
 State some new features which are incorporated into Microsoft visual C++ 2008? 
 what is the use of AFX_MANAGE_STATE ? 
 Visual C++ 
 Redirecting Console Output 
 Explain about VC++? 
 Discuss about the stack based buffer over run detection in VC++? 
 Array Variable 
 Explain about CWinThread class? 
 Export Restrictions
 Explain about functional? 
 Explain about the function regex? 
 Describe about unordered_map? 
 How to handle Varinat passed to COM components? 
 What is the difference between struct and class? 
 What is the disadvantage of a template function? 
 Describe the role of envelope and letter classes. 
 Describe the role of envelope and letter classes. 
 Explain about frames? 
 : Are there any new intrinsic (built-in) data types? 
 Explain about CFrameWnd? 
 What problem does the namespace feature solve? 
 Explain about CWinThread class? 
 What problem does the namespace feature solve? 
 Explain about functional? 
 Describe about unordered_map? 
 Explain about type_traits? 
 Explain about utility?
 Explain about tuple in visual c++? 
 What Is CMutex ? 
 How to make the Activex auto download on the browser via cab file ? 
 Name some important features of VC++? 
 What are all the situations where the /GS compiler is not applied. 
 Explain about the function regex? 
 Name some important features of VC++? 
 How to Killi an Object Prematurely.. 
 Explain about regex_search function? 
 Explain about frames? 
Explain about CFrameWnd? 
 Explain about InitApplication()? 
 Explain about tuple in visual c++? 
 Explain about typedef? 
  SAVING WINDOWS AS BITMAP 
 HOW to Make ActiveX controls Safe for scripting/ Safe for Initialization
 Explain about typedef? 
 Explain about InitApplication()? 
 Cmd Line Processing 
 What is CArchive class does? 
 Explain the program flow for a MFC based application ?

कोई टिप्पणी नहीं:

एक टिप्पणी भेजें

fly