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 |
Which CPrintInfo member variable must be set for multiple page printouts?
what is the use of AFX_MANAGE_STATE ?
if both base and derived class have the constructors if i create an object for derive class which class constructor is executed first
1.Get string1,string2,string3 1.add string1 and 2,string1 and 3. 2.replace vowels with T 3.count number of T. 4.remove T 5.COPY string1 to stringf. 6.restore string1. print the following 1.Number of T 2.StringF 3.string1+string2+string3 Use pointers and functions
What is primitive and non-primitive application?
if no message handler is available for a message then will deal with the message ? does window proving any default mechanism?
What is the difference between regular dlls and extended dlls?
What is the use of CCmdTarget ?
If application hangs while SendMessage is waiting for the result, how you handle it?
How can i change the color of a dropdowncombobox elements
Explain about MDI and CMultiDocTemplate ?
Difference between Cclint DC & Cpaint Dc