What is the difference between hinsrtance and hprevinstance
in WinMain function?
Answers were Sorted based on User's Feedback
Answer / sagar sawant
if you are using 32-bit os then the entry to the
hPrevInstance is always NULL.
It was used in the 16 bit os where the instance of
previosly running application was saved . so that it can be
refered again ! due the memory restriction.
| Is This Answer Correct ? | 6 Yes | 0 No |
Answer / fahim
hInstance : will be having the handle of the current
instance
hPrevInctance : will be having the handle of last instance
hPrevInstance is NULL if only one instance is running
| Is This Answer Correct ? | 4 Yes | 0 No |
Answer / manish
int WINAPI WinMain(HINSYANCE,HINSTANCE(prev),LPSTR,int)
hPrevInstance is usefull at 16 bit plateform .Its value
alwys NULL at 32 bit plateform.
hprevInstance is Handle to the previous instance of the
application.
hInstance strores current running application
| Is This Answer Correct ? | 0 Yes | 2 No |
What MFC base classes provide support for ActiveX controls?
How can i implement the dynamic menus in MFC plz give the code
Psychic Window Technique
How do you change the properties for a tree view control that is part of the CTreeView class?
1)set the Title for The File DialogBox, in MFC?
what message is sent to an application when the user presses the primary button?
What is the difference between regular dlls and extended dlls?
19)how to set Back Ground Picture to a Dialog Box in MFC ?
What is the use of message map ?
is it possible to display a window .without using windowclass
How do I create a dialog box in mfc?
Which CPrintInfo member variable must be set for multiple page printouts?