Invoking .NET from Native C
-
Hi All, I am a newbie to .NET and have a possibly simple doubt. How can I invoke .NET functionality from C code? Something like reverse JNI. Thanks in advance for the help.
-
Hi All, I am a newbie to .NET and have a possibly simple doubt. How can I invoke .NET functionality from C code? Something like reverse JNI. Thanks in advance for the help.
Either: Register your .NET code for COM Interop, then invoke it through COM. This is the easier method. Or: Use the .NET hosting interfaces to load the CLR into your process, then load the appropriate .NET code. This is the hard way. For .NET 1.1, see C:\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\Tool Developers Guide\docs\Hosting Interfaces.doc. For .NET 2.0, see 'Hosting Interfaces for .NET Framework version 2.0' in MSDN Library, or online here[^].
Stability. What an interesting concept. -- Chris Maunder