convert c#.net to vc++.net

hamid

Centurion
Joined
Jul 13, 2004
Messages
114
is there anyway to convert c#.net application to vc++.net (win 32) application?
if not, how can i use my c#.net application to new vc++.net(win32) app that there isnt any c# code to my end app
thank you
 
Win32 is a completely different beast than .Net. C# is managed and relies heavily on the .Net framework whereas Win32 C++ is traditional C++ and more ANSI/MFC based. I'm afraid if you want to convert C# code to Win32 C++ you are going to be in for a world of hurt. You'd be not as bad off if you can convert to mangaged C++ .Net...


hamid said:
if not, how can i use my c#.net application to new vc++.net(win32) app that there isnt any c# code to my end app
If I understand what you are asking, you can use win32 code in your C# application by externing the methods you need and importing the DLL directly. Check out this link for more information. I've never tried this in C#, but I have done it in other languages. If you were looking to do the opposite (use the C# code in the C++ app) you can do something simliar in C++ as well. I think there are links in the article I linked to.
 
We produce Instant C++, which converts from C# to C++/CLI ("C++ Edition") and VB.NET to C++/CLI ("VB Edition"). Download the demo to try it out (100 line limit on snippets and 1000 line limit on projects).

The conversion accuracy is high, but you do have to assembly the resulting header and cpp files into a new C++/CLI project since we don't convert the C# project file to C++/CLI (due to the lack of correspondence between C# and C++ project files and types).
 
Back
Top