Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

processmessages in a dll?

Hi
Is there a way of emulating application.processmessages within a dll?
(the particular dll routine waits on external events)
Thanks

Comments

  • zibadianzibadian Member Posts: 6,349
    : Hi
    : Is there a way of emulating application.processmessages within a dll?
    : (the particular dll routine waits on external events)
    : Thanks
    :
    It is impossible to create a message handling routine in a DLL, because it doesn't run inside its own process space. You can however hook into the windows message queue using the SetWindowsHookEx() API function. Then the DLL won't wait for external events, but you can still react to them.
Sign In or Register to comment.