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 |
Name the Synchronization objects?
visual Pogramming c++ coding for create a paint application.. (Please someone help me)
How can i change the color of a dropdowncombobox elements
what are the feauters of CObject
what is functioning of DIalodDataXchange ..?
1) Enable or disable a Cancel button at run time?
1) How do you Destroy a Dialog Box ?
what is the use of CCmdTarget?
What is the use of CCmdTarget ?
Whats is DDX & DDV in MFC?
How many types of combo box are their
2 Answers Aaditya Info Solutions, E Logic,
how can u change button shape at run time