porting quke2 to c#
-
hi how difficult will it be to port quake2 (the managed c++ version posted at CP) to c#? so that everything will be in c# here's the link to Quake2 .Net http://www.codeproject.com/managedcpp/Quake2.asp thanx
-
hi how difficult will it be to port quake2 (the managed c++ version posted at CP) to c#? so that everything will be in c# here's the link to Quake2 .Net http://www.codeproject.com/managedcpp/Quake2.asp thanx
This is a loaded question! How good of a programmer are you? Do you truly understand the .NET Framework or just think that C# is a special language? Do you understand the C/C++ native types very well? There are so many questions that require answering that such a question cannot be answered, at least not by anyone but yourself. Also, the Quake2 port is not written in managed code: it was merely compiled using the MS C/C++ compiler with the
/clr
switch turned on. This produces a mixed-mode assembly, which most often contains more native instructions than not. Therefore, not only is this assembly not verifiable it is also not cross-platform. Managed code is used where possible but the CLR cannot manage all memory as well (if at all) in a mixed-mode assembly. The article mentions something to this effect as well. If you want to learn more about this switch and the code that's produced, what the "Enter the Programmer" segment of MSDN TV for the episode, Managed Code[^].Microsoft MVP, Visual C# My Articles