Question : Set up event from C++ DLL

This is a function in c++DLL, and it will be called by app B.exe

BOOL __cdecl Initialize()
{
      AFX_MANAGE_STATE(AfxGetStaticModuleState());
      return TRUE;
}

How can i set up so that app A.exe (vb or c#)  will be raised for initialize() which was triggered by app B.exe through this c++DLL?

Answer : Set up event from C++ DLL

I've commented on the other thread. I think you are missing a fundamental issue with your system.  Inter-process communication (IPC) between two running applications involves far more than using the same DLL.  Microsoft has been working on this problem for decades.

http://msdn.microsoft.com/en-us/library/aa365574%28VS.85%29.aspx

DDE was one of their first solutions.

AppB is acting like a server and AppB the client.

If the C++ DLL and AppB were not designed for inter-process communication it won't work.
Random Solutions  
 
programming4us programming4us