+ 3

Convert c # codesto c++

How to convert c# codes to c++ or other languages

16th Oct 2020, 6:07 AM
Martin Jefferson
Martin Jefferson - avatar
5 Réponses
+ 10
Well... technically, the Unity3D Game Engine converts the .NET assemblies into C++ code using a proprietary compiler il2cpp - built by Unity3D. You can learn more in these links: https://news.ycombinator.com/item?id=8500867 https://lucasmeijer.com/posts/cpp_unity/ https://docs.unity3d.com/Manual/IL2CPP-HowItWorks.html https://docs.unity3d.com/Manual/IL2CPP.html Here's a project that seems to be doing something similar: https://alexalbala.github.io/Alter-Native/ Although, I haven't looked at it so I can't really endorse it one way or the other. TBH... I'd search Google for converting C# to C++. You'll learn a lot from existing content rather than just posting this here and risk opinionated, anecdotal responses or having people do the Google searches for you. BTW... If anyone needs me to respond to follow up questions, please mention me. Otherwise I won't receive the notification for messages after I unfollow this post.
16th Oct 2020, 7:36 AM
David Carroll
David Carroll - avatar
+ 3
The two languages bear nearly no similarity except for the 'C' in the name. Best option, not saying it's an easy option at all, is to do it by hands. I've tried some language porters in the past (just out of curiosity), but it ended with rather a disappointment than satisfaction. Not trying to discourage you though, you can try to search for C# to C++ porter, maybe they grew better with time, who knows ヘ(^_^)ヘ
16th Oct 2020, 6:17 AM
Ipang
+ 1
David Carroll ok thanks
25th Oct 2020, 6:43 AM
Martin Jefferson
Martin Jefferson - avatar
0
‎‏‪‏‪M. Heydari‬‏‬‏‎ I saw you tried to DM me about this question. I'm posting here because I can't keep up with DMs and have a strict personal policy to not respond to technical discussions or follow up in DM. Specifically, you wanted my help on the command line parameters for some of these utilities. Unfortunately, I've not worked with any utilities like these and don't really have the time (or interest) to review them beyond pointing you in the right direction. That's just a rabbit hole I prefer not going down.
20th Oct 2020, 4:06 PM
David Carroll
David Carroll - avatar