Are there any good and free C++ to C# conversion utilities "out there"? I need to take a project created with Borland C++ Builder 5 and compile it in MS Visual C++ 2008 Express, and hopely port it to C# thereafter to boot.
It's unfortunately not that easy. Windows C++ applications (unless they're written in Managed C++ in Visual Studio) are native Win32 applications which run without the .NET framework, and more importantly, they run unmanaged, without the controlling environment
of the .NET CLR.
It will be hopefully possible to migrate the application, first to VS C++, then maybe to Managed C++ and in the end C#, but it will involve A LOT of manual work. The environments are so very, very different.
In both cases, automated conversion of C++ code to any other language will leave a lot of manual work for you to do. C++ is vastly more complex than every other language out there - our converter attempts to handle all the syntax issues (no small task)
for native C++, Managed C++, and C++/CLI, but does not convert any framework or library references - i.e., it won't attempt to convert MFC or STL references.
Member
638 Points
1136 Posts
C++ to C# conversion utility?
Jan 30, 2008 05:19 PM|ClayShannon|LINK
Are there any good and free C++ to C# conversion utilities "out there"? I need to take a project created with Borland C++ Builder 5 and compile it in MS Visual C++ 2008 Express, and hopely port it to C# thereafter to boot.
www.lulu.com/blackbirdcraven
www.bclayshannon.photoshop.com
Member
190 Points
41 Posts
Re: C++ to C# conversion utility?
Jan 30, 2008 05:56 PM|marco.cs|LINK
All-Star
15920 Points
3297 Posts
Re: C++ to C# conversion utility?
Jan 30, 2008 05:57 PM|gunteman|LINK
It's unfortunately not that easy. Windows C++ applications (unless they're written in Managed C++ in Visual Studio) are native Win32 applications which run without the .NET framework, and more importantly, they run unmanaged, without the controlling environment of the .NET CLR.
It will be hopefully possible to migrate the application, first to VS C++, then maybe to Managed C++ and in the end C#, but it will involve A LOT of manual work. The environments are so very, very different.
Contributor
2132 Points
675 Posts
Re: C++ to C# conversion utility?
Jan 30, 2008 06:43 PM|David Anton|LINK
The demo edition of our C++ to C# Converter product is free and will convert up to 100 lines at a time.
Also, there is an online C++ to C# converter at www.code2code.net
In both cases, automated conversion of C++ code to any other language will leave a lot of manual work for you to do. C++ is vastly more complex than every other language out there - our converter attempts to handle all the syntax issues (no small task) for native C++, Managed C++, and C++/CLI, but does not convert any framework or library references - i.e., it won't attempt to convert MFC or STL references.
http://www.tangiblesoftwaresolutions.com
Instant C# - VB to C# Converter
Instant VB - C# to VB Converter