Click here to Skip to main content
13,087,797 members (81,321 online)
Rate this:
Please Sign up or sign in to vote.
See more:
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
Posted 1-Mar-13 1:49am
Updated 27-Jul-17 16:51pm
Mike Meinz26.7K
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
Please Sign up or sign in to vote.

Solution 2

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

Solution 12

Why convert to C#? Just create a managed C++ assembly with your C++ code in it, and call if from your C# app.
Rate this: bad
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.
Member 10322897 8-Oct-13 9:48am

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 |
Web02 | 2.8.170813.1 | Last Updated 27 Jul 2017
Copyright © CodeProject, 1999-2017
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