Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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 is the use of UpdateData funciton ?

7 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,


How to handle command line arguements from simple MFC application ?

2 Answers   TCS,


What is a message map?

1 Answers   Mphasis,


Which MFC function is used to display output?

9 Answers   TCS,


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

1 Answers  


How to convert the content of buffer into lower case character.

3 Answers   E Logic,


What is the difference between regular dlls and extended dlls?

2 Answers  


Explain in sort What is CTargetObject?

2 Answers  


What is the base class for most MFC classes?

7 Answers   CMC, Siemens,


What is LoadLibrary function returns?

7 Answers  


if both base and derived class have the constructors if i create an object for derive class which class constructor is executed first

10 Answers   Siemens, Symphony,


Categories