Hi All,


I know how to solve the messaging problem for a single DLL with a modeless dialog. But what about when you have multiple dll's, how do you know which FilterDllMsg() function to call??


I have tried to find the HINSTANCE of the DLL by:


1) getting the previous AFX_MODULE_STATE struct in the stack

(I cant seem to get to it)

2) using FromHandlePermanent and then (attempting) to access the

m_pModuleState member function which I found to be protected!


Someone must have come across this problem. How did you work out which DLL

the MSG is intended for??


regards,

Jeremy