The previous post covered the easy way to host the CLR in a native process by using a| www.mode19.net
GitHub Gist: star and fork pabloko's gists by creating an account on GitHub.| Gist
GitHub Gist: star and fork blue-devil's gists by creating an account on GitHub.| Gist
This article presents a method of loading a managed (C#) dll in a native (C++) process by using the Common Language Runtime (CLR). Basically, it refers to calling a C# method from C/C++ and enables calling managed code from native applications. This method was tested on the .Net Framework 4.0. The trick consists in creating and hosting a CLR instance in the C++ process and then using it to load a managed dll. Hosting the CLR in a Native Process The following dependencies will be required 1 2 ...| coding.vision
A quick example showing loading CLR via native code - clr_via_native.c| Gist