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

How do you change the properties for a tree view control that is part of the CTreeView class?

1 Answers  


1)At run-time, you can change the icon by calling the LoadIcon() function?

2 Answers  


what is the difference between compiling and building?

1 Answers  


1)does Frame Thickness in MFC?

1 Answers   winfoware,


what is the component of CLR ?

8 Answers   AZTEC, Symphony,






what is the updated verssion in vc++

3 Answers   Aspect,


I want recent paper pattern for HP company?

0 Answers   HP,


plzz tell me what we can do and dont in tally ERP & sap business one?

0 Answers  


i have created runtime menu -- ( admistrator ->managepackage,manage module). but now i want to open a dialog when i select manage package and any other diaolg when selecting manage module ( whole selection is at run time only ) . Please HELP .its urgently required

3 Answers   Patni,


Hi can anyone explain about the synchronization objects types and where we are using in the code.

1 Answers  


Tell me about different kinds of synchranization objects ?

6 Answers  


What view class enables you to use an edit control as a view?

1 Answers  


Categories