Click here to Skip to main content
12,395,352 members (67,777 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: C# VisualC++
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
Updated 20-Mar-16 8:29am
Mike Meinz25.7K
v3
Comments
Philippe Mori 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 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
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.160721.1 | Last Updated 20 Mar 2016
Copyright © CodeProject, 1999-2016
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