Quantcast
Channel: MSDN Blogs
Viewing all articles
Browse latest Browse all 29128

Use reflection from native C++ code to run managed code

$
0
0
In the prior post ( Use Reflection to create instances of objects ) I showed how to create a plain C# console application that has no special references (including none to any WinForms assembly) that can load and invoke a WinForm.Exe program. Today, we’ll look at doing the same thing from a plain old C++ native program. We need to 1. Start the CLR 2. get the default app domain 3. get the MSCorlib assembly loaded in that app domain 4. get the type of System.Reflection.Assembly from MSCorLib 5. invoke...(read more)

Viewing all articles
Browse latest Browse all 29128

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>