Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
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

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_KartugWar sucks, but the sound is good and WE are the DJ's

![]() |
![]() |
![]() |

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