I have a C ++ application. This supports C ++ user plugin DLL files, they will dynamically load these DLLs, and then they will be able to dynamically create and use user types. These user types are based on the basic types and interfaces defined in the main library of the main applications, so I keep the user objects as pointers to the base class and call the user virtual functions to make them magic.
Now I want to extend the plugin DLL to allow a managed DLL (I mainly care about C #). I want all sorts of magic to happen in C # DLL plugins.
How can I dynamically load these dlls, some, as I think, win32 LoadLibrary, which I am currently using, will be pleased with the managed DLL. I will not have access to these libraries at the time of compilation / link, they come from the user.
After loading the library, unfortunately, I suspect that in the future I will use COM to call derived functions. Perhaps I could use the CLI / C ++ wrapper that I read about, but I'm very inexperienced here and would be grateful for any advice or links to related articles.
Alwaystraining
source share