Author Topic: C# to C++  (Read 2524 times)

0 Members and 1 Guest are viewing this topic.

Offline backdoorkiller007

  • NULL
  • Posts: 2
  • Cookies: -5
  • d0n7 h@73 7h3 H@cK3r H@73 tH3 c0de
    • View Profile
C# to C++
« on: January 31, 2014, 05:14:16 pm »
Hey Guys,


Can you help me buddy. i want to know some programming idea. can we convert c#.net file to the c++ file ?


Thank You,

Offline techb

  • Soy Sauce Feeler
  • Global Moderator
  • King
  • *
  • Posts: 2350
  • Cookies: 345
  • Aliens do in fact wear hats.
    • View Profile
    • github
Re: C# to C++
« Reply #1 on: January 31, 2014, 05:26:30 pm »
You can go from one language to the next. Be a good idea to know both of them before you try and port something though.
>>>import this
-----------------------------

Offline rasenove

  • Baron
  • ****
  • Posts: 950
  • Cookies: 53
  • ಠ_ಠ
    • View Profile
Re: C# to C++
« Reply #2 on: January 31, 2014, 05:28:19 pm »
http://www.codeproject.com/Articles/310667/NET-Code-Conversion
You should search before you ask.
All im going to say is manually writing the code is the best way for both learning and producing quality shit. Unless you'r in a hurry.
« Last Edit: January 31, 2014, 05:32:12 pm by rasenove »
My secrets have secrets...

Offline Phage

  • VIP
  • Overlord
  • *
  • Posts: 1280
  • Cookies: 120
    • View Profile
Re: C# to C++
« Reply #3 on: January 31, 2014, 09:51:13 pm »
Porting code should never be your first option. It will usually end up in messy and bad code. But since you already got the program coded in one language, much of the work will simply be learning the new syntax and libs. So, yeah as already stated, go learn C++ and do it manually.
"Ruby devs do, in fact, get all the girls. No girl wants a python, but EVERY girl wants rubies" - connection

"It always takes longer than you expect, even when you take into account Hofstadter’s Law."

Offline Deque

  • P.I.N.N.
  • Global Moderator
  • Overlord
  • *
  • Posts: 1203
  • Cookies: 518
  • Programmer, Malware Analyst
    • View Profile
Re: C# to C++
« Reply #4 on: February 02, 2014, 06:19:14 pm »
The question is: Why do you want to do it?
I think there is a lot of information missing, so I feel unable to give an appropriate answer.
The logical answer would be: Yes, it is possible.
But I doubt that it is a good solution to whatever problem you want to solve.
Btw: If you want to code in C++.NET you can just use the C# code as is, because .NET languages are made to be interoperable. But yeah, I don't even know if that answer even relates to your problem.