Searching google online for 1 whole week and I still can't get this solved... please help!
I'm suppose to build a Plugin (will be called Plugin.dll after compiled) which resides in a main framework (Framework.exe after compiled), everything is written in C# except the C++ COM object (ComObject.dll) which is required by my plugin to function.
The hierarchy looks something like this:
Framework.exe --> Plugin.dll --> ComObject.dll
I was provided with the main framework, the ComObject.dll and a manifest file Framework.exe.manifest.
Currently I have two options of getting my program to work:
Option 1: In Command Prompt, type in 'regsvr32 ComObject.dll' to register the COM object, add the COM reference in my plugin source code, build away and run it.
Option 2: In the application properties of my framework source code, add in the manifest file to get it embedded into the Framework.exe. Either this or manually embed the manifest file using mt.exe, both works. This works even if I unregister it
later using 'regsvr32 /u ComObject.dll' in Command Prompt.
View Complete Post