hamid Posted March 28, 2006 Posted March 28, 2006 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 Quote [ once4ever ]
mskeel Posted March 28, 2006 Posted March 28, 2006 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... if not' date=' how can i use my c#.net application to new vc++.net(win32) app that there isnt any c# code to my end app[/quote']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. Quote
David Anton Posted June 21, 2006 Posted June 21, 2006 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). Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.