is there a c# -> c++ code converter out there ?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jon Rea

    is there a c# -> c++ code converter out there ?

    is there a c# -> c++ code converter out there ?

    Hi people,

    I was just wondering if there is a C# to C++ converter out there. I have
    some working c# code and need to integrate it into a non-managed c++
    program. The classes used are all user defined and use simple floats ints
    etc, so its just a matter of converting syntax and adding proper pointers. A
    converter program would therefore save me a lot of time ...

    Many thanks for any suggestions in advance,
    Jon


  • Nicholas Paldino [.NET/C# MVP]

    #2
    Re: is there a c# -> c++ code converter out there ?

    Jon,

    I don't think there is a converter out there per se, but you should be
    able to find a decompiler that will decompile assmeblies into C++ code. If
    your classes are really all user-defined and use similar types, then you
    should be able to just get the decompiled results and then copy-and-paste
    them.

    Hope this helps.


    --
    - Nicholas Paldino [.NET/C# MVP]
    - mvp@spam.guard. caspershouse.co m

    "Jon Rea" <jr0407@bris.ac .uk> wrote in message
    news:uKRpb.1$Gh 5.0@news-binary.blueyond er.co.uk...[color=blue]
    > is there a c# -> c++ code converter out there ?
    >
    > Hi people,
    >
    > I was just wondering if there is a C# to C++ converter out there. I have
    > some working c# code and need to integrate it into a non-managed c++
    > program. The classes used are all user defined and use simple floats ints
    > etc, so its just a matter of converting syntax and adding proper pointers.[/color]
    A[color=blue]
    > converter program would therefore save me a lot of time ...
    >
    > Many thanks for any suggestions in advance,
    > Jon
    >
    >[/color]


    Comment

    • Huihong

      #3
      is there a c# -&gt; c++ code converter out there ?

      You can try our salamander decompiler,



      You can upload your file, and get the MC++ code.

      The desktop version also supports .h file generation, and
      uses same names for local variables as in the original
      code when your C# program is built with debug info. Many
      efforts have been taken to make sure that the generated
      code resembles as much as possible to the original source
      code.

      Huihong
      [color=blue]
      >-----Original Message-----
      >is there a c# -> c++ code converter out there ?
      >
      >Hi people,
      >
      >I was just wondering if there is a C# to C++ converter[/color]
      out there. I have[color=blue]
      >some working c# code and need to integrate it into a non-[/color]
      managed c++[color=blue]
      >program. The classes used are all user defined and use[/color]
      simple floats ints[color=blue]
      >etc, so its just a matter of converting syntax and adding[/color]
      proper pointers. A[color=blue]
      >converter program would therefore save me a lot of[/color]
      time ...[color=blue]
      >
      >Many thanks for any suggestions in advance,
      >Jon
      >
      >
      >.
      >[/color]

      Comment

      • Al Ponomarev

        #4
        Re: is there a c# -&gt; c++ code converter out there ?

        On Tue, 4 Nov 2003 17:55:38 -0000, Jon Rea <jr0407@bris.ac .uk> wrote:
        [color=blue]
        > is there a c# -> c++ code converter out there ?
        >
        > Hi people,
        >
        > I was just wondering if there is a C# to C++ converter out there. I have
        > some working c# code and need to integrate it into a non-managed c++
        > program. The classes used are all user defined and use simple floats ints
        > etc, so its just a matter of converting syntax and adding proper
        > pointers. A
        > converter program would therefore save me a lot of time ...
        >[/color]

        Try the 9Rays.Spices.Ne t decompiler(http://9rays.net/products/spices ).
        With this tool you can convert your assembly to 6 languages: IL, C#,
        VB.Net, MC++, J#, Delphi.Net


        --
        Best regards,
        Al Ponomarev
        9Rays.Net

        Comment

        Working...