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 |
How to handle dynamic menus in MFC?
if both base and derived class have the constructors if i create an object for derive class which class constructor is executed first
1)set the Title for The File DialogBox, in MFC?
I can i set size of integer variable should be fixed for different operating systems(Ex i want integer size is 2bytes in OS)
If application hangs while SendMessage is waiting for the result, how you handle it?
What is #progma and where it is used?
How do I create a dialog box in mfc?
How to setup a timer?
if i modified data in 1 view how does the other view knows
In MFC By Using Communication Between Dialog Boxes,How Can We Send Message Of one Dialog Box To Another Dialog.?
3 Answers Financial Technologies,
Hi All, i am new for VC++ SDK. i want to get the IP Address of all the External device connected with my local machine.please give the code Regards, Praveer
What is the difference between Extension DLL and Regular DLL?