Click here to Skip to main content
15,886,724 members
Home / Discussions / C#
   

C#

 
GeneralRe: Adding a CheckBox column in DataGrid Pin
Jon G25-Apr-04 6:58
Jon G25-Apr-04 6:58 
GeneralRe: Adding a CheckBox column in DataGrid Pin
Heath Stewart25-Apr-04 7:33
protectorHeath Stewart25-Apr-04 7:33 
GeneralRe: Adding a CheckBox column in DataGrid Pin
Appelz26-Apr-04 20:31
Appelz26-Apr-04 20:31 
GeneralGame Programming with C# Pin
Snews24-Apr-04 10:34
Snews24-Apr-04 10:34 
GeneralRe: Game Programming with C# Pin
Heath Stewart24-Apr-04 10:44
protectorHeath Stewart24-Apr-04 10:44 
GeneralRe: Game Programming with C# Pin
Snews24-Apr-04 10:51
Snews24-Apr-04 10:51 
GeneralRe: Game Programming with C# Pin
bjoernen24-Apr-04 11:23
bjoernen24-Apr-04 11:23 
GeneralRe: Game Programming with C# Pin
Judah Gabriel Himango24-Apr-04 13:24
sponsorJudah Gabriel Himango24-Apr-04 13:24 
1. The advantages include less amount of code to write, cleaner syntax, no manual memory management, faster development cycles. Disadvantages include slower performance, access to platform level services only via P/Invoke.

2. You can use OpenGL in C#. As Heath mentioned, it's already been done. See CsGl[^], the Exo Engine[^], or the cross-platform Tao OpenGL library[^].

3. It's has simpler language syntax than traditional C++, which translates into code that's easier to read, write, and find bugs. Memory management is taken care of for you, preventing many pitfals of C including memory leaks and circular references. It generates verifiable 'safe' code which could be quite important when Microsoft's ClickOnce deployment rolls around. It interoperates with other .NET languages seamlessly without any extra effort; write a public Test() function in a dll and I'd be able to use it from VB.NET, managed C++, JScript.NET, or any other language targetting the .NET platform. Dlls can be stored in the Global Assembly Cache in which dll versions do not overwrite one another, potentially preventing the problems associated with 'dll hell'. See Microsoft's .NET overview[^] for a list of their benefits to using .NET.

Hope that answers some of your questions. To be honest, I don't know if C# is right for game development; C#, while theoretically faster than Java (due to being 'designed for JIT compiling') isn't as fast as C++, and doesn't directly give you access to low-level services in the same flavor as traditional C or C++ does. On the other hand, C++ is not as fast as C, and C is not as fast as pure x86 ASM code, yet that has not stopped developers historically from writing games in C++. I guess it's a tradeoff - speed for RAD. If you are more focused on finishing a game faster than writing a game that runs faster, use C#. If you are more focused on writing a game that squeezes every last drop of performance out, use C/C++/ASM.

FYI, some groups have done interesting game development work with C#. For instance, Vertigo software ported Quake II (written in C and ASM) to the .NET framework using managed C++. clickity[^]. As previously mentioned, Microsoft has released Managed DirectX 9[^]. Microsoft's new XNA[^] initiative plans to build on DirectX (including managed) and Visual Studio as tool bases as well.
GeneralRe: Game Programming with C# Pin
CWIZO24-Apr-04 23:56
CWIZO24-Apr-04 23:56 
GeneralRe: Game Programming with C# Pin
Jeff Varszegi25-Apr-04 7:14
professionalJeff Varszegi25-Apr-04 7:14 
GeneralRe: Game Programming with C# Pin
Judah Gabriel Himango27-Apr-04 19:21
sponsorJudah Gabriel Himango27-Apr-04 19:21 
GeneralRe: Game Programming with C# Pin
Jeff Varszegi28-Apr-04 2:11
professionalJeff Varszegi28-Apr-04 2:11 
GeneralRe: Game Programming with C# Pin
leppie25-Apr-04 0:08
leppie25-Apr-04 0:08 
GeneralTanks for the Ansers... Pin
Snews25-Apr-04 3:58
Snews25-Apr-04 3:58 
GeneralTree Data Structure Pin
William Blasko24-Apr-04 9:40
William Blasko24-Apr-04 9:40 
GeneralRe: Tree Data Structure Pin
Heath Stewart24-Apr-04 10:20
protectorHeath Stewart24-Apr-04 10:20 
GeneralDirectory Structure Pin
Heilmann24-Apr-04 4:26
sussHeilmann24-Apr-04 4:26 
GeneralRe: Directory Structure Pin
Hesham Amin24-Apr-04 4:41
Hesham Amin24-Apr-04 4:41 
GeneralServer Connections/From Add-in Pin
cnurse24-Apr-04 4:14
cnurse24-Apr-04 4:14 
GeneralWindows Form Designer Error Pin
josefg24-Apr-04 3:41
josefg24-Apr-04 3:41 
GeneralRe: Windows Form Designer Error Pin
josefg24-Apr-04 7:32
josefg24-Apr-04 7:32 
GeneralServiceProcessInstaller.UserName and password inaccessible Pin
jiagia23-Apr-04 22:41
jiagia23-Apr-04 22:41 
GeneralRe: ServiceProcessInstaller.UserName and password inaccessible Pin
Heath Stewart24-Apr-04 10:37
protectorHeath Stewart24-Apr-04 10:37 
Generalsending xml Pin
hmdhmd23-Apr-04 22:13
hmdhmd23-Apr-04 22:13 
GeneralRe: sending xml Pin
Nick Parker24-Apr-04 7:30
protectorNick Parker24-Apr-04 7:30 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.