I have a c# project with a c++/cli dll using the managed easyhook library. My test app works fine, I can inject my dll into the target process fine and perform hooks / execute code etc.
I have an IPC server running in my application simmilar to the filemonitor example and another server in the target DLL so my app can call code from the c++/cli side.
if I define the classes for the IPC servers (i.e like filemoninterface) in my main c# application , everything seems to work ok and I can make IPC calls fine.
If I define the classes used for IPC in the c++/cli project, not changing anything else, everything compiles fine, but on execution it throws the following exception;
Unhandled Exception: System.IO.FileNotFoundException: The specified module could not be found. (Exception from HRESULT: 0x8007007E)
at Poker.Program.Main(String args)
I need to have the class for the injected dll defined in the C++/cli project as it will make heavy use of some native functionality.
Is this possible, am i doing something stupid / horribly wrong?