softwareguy74
Jan 3rd, 2001, 01:53 AM
Hi,
I recently asked this question in the VB forum but I thought I'd ask you C++ guys to see how you would handle this..
Say you're building a DLL with VC++. In it you are implementing an api function that uses callbacks to let you know when the operation has completed. The problem is these require the hWnd of the window to receive the windows message. But, since this is in a DLL, there is now windows, correct? So, how do you specify that the DLL should receive the notification so that it can determine the message and then report it back to the client app using the DLL?
Using VB, someone suggested that I just place a form in the DLL to accept the windows messages.. Using C++, would you just create a window in the DLL but not show it?
Any help would be appreciated..
Dan
I recently asked this question in the VB forum but I thought I'd ask you C++ guys to see how you would handle this..
Say you're building a DLL with VC++. In it you are implementing an api function that uses callbacks to let you know when the operation has completed. The problem is these require the hWnd of the window to receive the windows message. But, since this is in a DLL, there is now windows, correct? So, how do you specify that the DLL should receive the notification so that it can determine the message and then report it back to the client app using the DLL?
Using VB, someone suggested that I just place a form in the DLL to accept the windows messages.. Using C++, would you just create a window in the DLL but not show it?
Any help would be appreciated..
Dan