I have an EXE and DLL. When started the EXE calls some functions in the DLL, and the DLL then does some monitoring. (unrelated).
What i need to do now, is when the DLL wants to raise an event - it needs to call a function or somehow return several LONGs and STRINGS to the main EXE.
I'm unsure how to do this - whether to use SendMessage, or make the DLL somehow call a function in the main EXE.
I thought of creating a function in the DLL that would allow the EXE to poll for events. But decided this would be too processor intensive.
Another restricting factor is that my EXE needs to return a 1 or 0 back to the DLL after the DLL has raised the event.
Any help would be appreciated.
- Nathan
[This message has been edited by Nathan Evans (edited August 07, 2001).]
What i need to do now, is when the DLL wants to raise an event - it needs to call a function or somehow return several LONGs and STRINGS to the main EXE.
I'm unsure how to do this - whether to use SendMessage, or make the DLL somehow call a function in the main EXE.
I thought of creating a function in the DLL that would allow the EXE to poll for events. But decided this would be too processor intensive.
Another restricting factor is that my EXE needs to return a 1 or 0 back to the DLL after the DLL has raised the event.
Any help would be appreciated.
- Nathan
[This message has been edited by Nathan Evans (edited August 07, 2001).]
Comment