Possible Duplicate:
What are my options for C++ DLL to call a C# DLL?
Okay so there is a load of material talking about how to wrap unmanaged code written in C++ or other languages and compiled to a DLL, and making a C# wrapping to make this unmanaged code something that can be called from C# directly.
I can't seem to find any material on calling managed code, from unmanaged code. That is, given a C# library, I'd like to wrap it such that I can call it's functions from C++. It that possible?
This might be worth looking at.
You might want to expose your component to COM interop: http://msdn.microsoft.com/en-us/library/c3fd4a20.aspx
精彩评论