Event handling in DLL
Posted on 1998-06-29
Maybe I'm just being obtuse:
If I call a function in a DLL that should return an integer and that function uses a process that requires event handling how do I return the result?
For example: my actual function takes some information, massages it, opens a socket connection to a service, writes the data, and receives a response. That response needs to be returned to the calling application. However, when I get the response, I'm in the onDataArrival event handler -- far removed from my original function.
How can I return that value?