Click here to Skip to main content
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 2:49am
Edited 1-Mar-13 3:32am
Mike Meinz22.8K
v3
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
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
 
int solution(int A[], int N) {
    int *space = NULL;
    int size = 1000001;
    int i;
 
    space = malloc(sizeof(int) * size);
    if (!space ) {
        perror("malloc");
        return -1;
    }
 
    for (i = 0; i < size; ++i) {
        space[i] = 0;
    }
 
    for (i = 0; i < N; ++i) {
        space[A[i]]++;
    }
 
    for (i = N - 1; i >= 0; --i) {
        if (space[A[i]] == 1) {
            break;
        }
        --space[A[i]];
    }
 
    free(space);
    return i;
}
 
int main(void)
{
    int A[] = {2, 2, 1, 0, 1, 3, 1, 2, 10};
 
    printf("solution: %d.\n", solution(A, sizeof(A) / sizeof(int)));
    return 0;
}
  Permalink  
Comments
Kenneth Haugland at 23-Oct-14 12:46pm
   
??? Posted in the wrong place?
Dave Kreskowiak at 23-Oct-14 12:55pm
   
What the puck does this have to do with the question??

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

  Print Answers RSS
0 Richard MacCutchan 269
1 Aajmot Sk 252
2 Marcin Kozub 235
3 Sergey Alexandrovich Kryukov 185
4 Praneet Nadkar 167
0 OriginalGriff 7,913
1 Sergey Alexandrovich Kryukov 7,232
2 DamithSL 5,604
3 Manas Bhardwaj 4,986
4 Maciej Los 4,865


Advertise | Privacy | Mobile
Web01 | 2.8.1411023.1 | Last Updated 23 Oct 2014
Copyright © CodeProject, 1999-2014
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