Link to home
Start Free TrialLog in
Avatar of DerekOHara
DerekOHara

asked on

How do I process Windows events (WndProc) through a VB DLL?

I am writing a DLL that will make calls to an external device, and need to process Windows Messages to identify results.  I can do this in an exe by overridding WndProc, but with a DLL there is no Windows Handle (hWnd) available.
Avatar of SStory
SStory
Flag of United States of America image

I guess you'd need to create a window using
CreateWindowEx api call--the old way.
http://msdn.microsoft.com/en-us/library/ms632680(VS.85).aspx

You could use this to make a hidden or taskbar window that could receive messages
This may also be a good refresher...

http://www.toymaker.info/Games/html/winmain.html
ASKER CERTIFIED SOLUTION
Avatar of SStory
SStory
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial