more dll help
Posted on 2002-07-10
App1 can call processes in a dll
App2 can send data directly to App1.
App1 cannot send messages directly to App2. (App1 is not my own creation)
Dll unloads itself between calls (I don't want to keep it loaded as it may not be used frequently enough to warrant that).
Goal: Event driven messages from App1 to App2 with dll as mediator.
Details: App1 calls a process in the dll (this already works). DLL then sends a string to App2 (initiates the event). The help files say Sendmessage() will not work for this but that seems wrong.
Sample code, please, for DLL initiating a message with a string (or PChar) to App2 and create an event in App2 to receive the string.
I already have code for locating the HWND for each app.
Thanks for you time.