Converting a code from C to C#
So I got a game called Velocity Vortex that I coded in C, now I wanna do the same in C# but it’s about 6437 lines of code, how do I do that? There is not a single Ai that I know that can do it
4 Replies
A good first step would be learning C# :pwetty:
you won't be able to just run it through a readymade tool and have it work. Your best bet will be to manually re-implement it in C#.
Even if you find some tool that does some translation, it will most likely require a lot of work to get that "translated" code working. And then you are most likely stuck with a suboptimal hard to read code base.
You are probably not only better off, but also faster, if you re-implement your code in C#.
it depends why you want it in c#. if it's applicable, you could refactor your code (if needed) to export all the necessary functions to a dll, then import the dll in c#.
FNA (C#) does this with FNA3D (c) if you want to see an example