Click here to Skip to main content
11,929,539 members (58,658 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
Posted 1-Mar-13 2:49am
Edited 1-Mar-13 3:32am
Mike Meinz24.9K
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 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
Rate this: bad
Please Sign up or sign in to vote.

Solution 6

Adesk::Boolean AuPolyline::worldDraw (AcGiWorldDraw *mode) {
    assertReadEnabled () ;
    //-- Returning Adesk::kFalse here will force viewportDraw() call
    return (Adesk::kFalse) ;
CHill60 1-Oct-15 7:12am
iProgramIt 2-Oct-15 3:09am
That is completely irrelevant. Post that code somewhere else, please!

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
Web04 | 2.8.151126.1 | Last Updated 1 Oct 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