Computing.Net > Forums > Programming > doubt in windows prog

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

doubt in windows prog

Reply to Message Icon

Name: Anu
Date: February 17, 2005 at 21:49:46 Pacific
OS: win 98
CPU/Ram: p3,128MB
Comment:

Hello,
I am learning windows programming. I came across the below variables in one program.

HINSTANCE m_hTwainDLL;
DSMENTRYPROC m_pDSMProc;

can anyone explain me ?

Thanks,
Sri




Sponsored Link
Ads by Google

Response Number 1
Name: Dark_Kartug
Date: February 18, 2005 at 06:08:54 Pacific
Reply:

Ok first off Im still a big beginner at C++. So lets see
HINSTANCE stands for Handle to Instance. Meaning its a handle (sort of like a pointer...all windows objects are accessed through these handles) to the object or variable m_hTwainDLL. Now I havent actually programmed any windows based stuff yet so I cant tell you if that is just a variable or in fact a DLL file. I'd assume if its a file then its something like a driver. Twain drivers are usually used on scanners. But I really just dont know.

DSMENTRYPROC seems to be a what is referred to as a message. In this case its an object thats probably meant to pass a message to the windows message processing function. Windows, if im not mistaken, handles processes like user inputs through this messaging system. Each task is sent to the function in form of a message. The function then calls the appropriate handles and what not to process the input.

Now this might all be wrong. Remember me saying im a complete noob ok ;). You have been warned haha.

Cheers,
Dark_Kartug

War sucks, but the sound is good and WE are the DJ's


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: doubt in windows prog

how to write resident programm in window www.computing.net/answers/programming/how-to-write-resident-programm-in-window/932.html

Sound priority in Windows www.computing.net/answers/programming/sound-priority-in-windows/6111.html

read with non_block in Windows www.computing.net/answers/programming/read-with-nonblock-in-windows/10127.html