Click here to Skip to main content
11,705,610 members (53,078 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# VC++
Are there any conversion tools available to convert C++ source code to C#? I am asking about free tools. I need to convert VC++ code into C#. Is this possible? If such tools available, please share the URL.

Thanks in Advance
sss
Posted 1-Mar-13 1:49am
Edited 1-Mar-13 2:32am
Mike Meinz24.7K
v3
Comments
Philippe Mori at 18-Aug-15 12:46pm
   
Do you really need to convert code as you can use C++/CLI to make an assembly that allows to use C++ code from C#.

Converting lot of code can be time consumming and error prone so you have to be sure it is the right approach.

Offen find and replace can works quite well. It all depends on the size and complexity of the code. by the way, I usuall prefer that over convertion using IL has in that case comments are lost and some primitives like for loop are replaced by while loop and other similar things.

A paid tools that works well might be more cost effective than a tools that don't work that well. You have to try yourself with your own code as support can vary widely...
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

I used above linked but app was not upto mark so I used
http://www.tangiblesoftwaresolutions.com/Product_Details/CPlusPlus_to_CSharp_Converter_Details.html[^]
free version has limitation of 1000 line but we can get our C# converted code in part.
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

I found two using Google Search with keywords: convert c++ to C#

SourceForge.Net C++ to C# Code Converter [^]

Softpedia Convert C++ To C#[^]

There may be more. I just picked two to share.
  Permalink  
v2
Comments
Member 10322897 at 8-Oct-13 9:48am
   
a

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 229
1 Sergey Alexandrovich Kryukov 100
2 Inimicos 60
3 ProgramFOX 50
4 Richard MacCutchan 45
0 OriginalGriff 9,053
1 Sergey Alexandrovich Kryukov 8,347
2 CPallini 5,189
3 Maciej Los 4,726
4 Mika Wendelius 3,626


Advertise | Privacy | Mobile
Web02 | 2.8.150819.1 | Last Updated 18 Aug 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100