What is the difference between hinsrtance and hprevinstance
in WinMain function?

Answers were Sorted based on User's Feedback



What is the difference between hinsrtance and hprevinstance in WinMain function? ..

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

What is the difference between hinsrtance and hprevinstance in WinMain function? ..

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

What is the difference between hinsrtance and hprevinstance in WinMain function? ..

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

Post New Answer

More MFC Interview Questions

what if we provide two message handler for same message ?

1 Answers  


What is the difference between regular dlls and extended dlls?

2 Answers  


Tell us something about MFC?

7 Answers   Microsoft,


How to update windows title bar dynamically?

7 Answers   HCL,


What is Thread ?(VC++)What is the difference between Cmutex and Csemaphone?

5 Answers   Atos Origin,


What is the range of intensity of RGB

1 Answers  


how can u change button shape at run time

3 Answers   Samsung,


What is Multithreading

1 Answers   Invensys,


What is subclassing?

2 Answers  


What is the command routing in MFC framework?

3 Answers  


Difference between Debug and Release versions?

4 Answers  


What is the difference between ASSERT and VERIFY?

2 Answers  


Categories