Call C# from C++(unmanaged)

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Can I call C# code from unmanaged C++ code? If yes, how?

I saw the same question posted in this newsgroup last year but there was no
useful answer there, so posting it again hoping someone might have tried it
by now and knows the answer.

Thanks
-Jyoti.
 
Ok, I found the following article on MSDN. It explains using managed code
from unmanaged code and vice versa. But the code to be used has to be a COM
component. If anyone knows any solution that does not require the managed
classes to be converted to COM component, please let me know.

http://msdn.microsoft.com/library/d...html/cpconInteroperatingWithUnmanagedCode.asp

Thanks
-Jyoti.

Hmmm, the only thing I can think of is for you to host the runtime in
your process...

http://msdn.microsoft.com/library/d...de/html/cpconhostingcommonlanguageruntime.asp

might be a good place to start :)
 
Back
Top