import C# form into c++
Is there a way to import a C# windows form and user control into C++.NET? I'm usi开发者_开发问答ng VS2008 and have VS2010 installed as well.
If you have a .NET assembly or control in an assembly it doesn't matter wheter you code and use it from managed C++, C# or VB.NET or any other .NET language, that's one of the reasons why .NET was invented: be language independent.
To use it: simply reference the .NET assembly in the new project.
There's a plugin for reflector that will render the code as C++ (http://www.sandpapersoftware.com/Main/Reflector.html) - open your compiled-from-c# dll with that...
Move your UserControl into a Class Library project and add this project as a reference.
精彩评论