codeDom
codeDom

Reputation: 1769

C++ how load the .NET runtime and thereby host WPF components

The Visual Studio devenv.exe executable is a native program. However, native programs can load the .NET runtime and thereby host Windows Forms and WPF components.

I want to do as Visual Studio How to do it?

Upvotes: 1

Views: 580

Answers (1)

Rich Turner
Rich Turner

Reputation: 10984

This blog post from Microsoft and its associated tutorial demonstrate how to use the new CLR hosting API's to host the CLR within your native apps.

This article also illustrates how to use the new CLR4 hosting API's.

As OP requested: Here's the first article of a series exploring how to host the CLR & WPF in a native app.

Also, here's an article about how to host a WPF control within an VC++/MFC app.

Upvotes: 2

Related Questions