Thread: C# or C++

  1. #1
    Registered User Daniel's Avatar
    Join Date
    Jan 2003
    Posts
    47

    C# or C++

    Hi,

    What would you recommend for someone who wants to start learning directX, C# or C++?

    Thanks

  2. #2
    l'Anziano DavidP's Avatar
    Join Date
    Aug 2001
    Location
    Plano, Texas, United States
    Posts
    2,743
    I dont know about everyone else, but I would recommend using C++.

    C# is more of a web-oriented language. It is Microsoft's mission to kill Java. DirectX isnt really web-oriented. DirectX is more game oriented for the most part (correct me someone if I am wrong), and therefore C++ would be your best bet.
    My Website

    "Circular logic is good because it is."

  3. #3
    Crazy Fool Perspective's Avatar
    Join Date
    Jan 2003
    Location
    Canada
    Posts
    2,640
    > C# is more of a web-oriented language. It is Microsoft's mission to kill Java.

    isnt J++ microsofts mission to kill Java.

  4. #4
    l'Anziano DavidP's Avatar
    Join Date
    Aug 2001
    Location
    Plano, Texas, United States
    Posts
    2,743
    isnt J++ microsofts mission to kill Java.
    that was a failed mission
    My Website

    "Circular logic is good because it is."

  5. #5
    the hat of redundancy hat nvoigt's Avatar
    Join Date
    Aug 2001
    Location
    Hannover, Germany
    Posts
    3,130
    C# is more of a web-oriented language. It is Microsoft's mission to kill Java. DirectX isnt really web-oriented. DirectX is more game oriented for the most part (correct me someone if I am wrong), and therefore C++ would be your best bet.
    Correcting: C# can be used as code-behind in ASP pages, but that's a bonus. You can write normal applications with it as well.

    Assuming that C++.NET is totally out of the question, it boils down to unmanaged C++ vs C#. Both have advantages and disadvantages. Portability is no issue here, DX isn't portable anyway. While unmanaged C++ has the raw power needed for action games, C# has many helpful features and a real nice class library already included. C++ uses the COM interfaces of DX, C# already has wrapper classes. I'd say download the DX9 SDK from Microsoft and look at the samples. Look at the C++ samples and the C# samples and decide what is easier to understand for you.

    If you want to create a kick ass action shooter in 6 months, go for C++, if you want a normal game in 2, go for C#.
    hth
    -nv

    She was so Blonde, she spent 20 minutes looking at the orange juice can because it said "Concentrate."

    When in doubt, read the FAQ.
    Then ask a smart question.

  6. #6
    Crazy Fool Perspective's Avatar
    Join Date
    Jan 2003
    Location
    Canada
    Posts
    2,640
    Originally posted by DavidP
    that was a failed mission
    thank god. the last thing we need is another corperate owned programming language (sun does a good job with Java, who knows what microsoft would come up with )

  7. #7
    Dude C# is corporate owned is well. Bill Gates's company owns it, even though he probably doesn't know anything about it (Bill Gates is just there to find ways to cheat people).

  8. #8
    Crazy Fool Perspective's Avatar
    Join Date
    Jan 2003
    Location
    Canada
    Posts
    2,640
    Originally posted by frenchfry164
    Dude C# is corporate owned is well. Bill Gates's company owns it, even though he probably doesn't know anything about it (Bill Gates is just there to find ways to cheat people).
    yes, i know. thats what i meant by "another corporate owned..." there is enough as is. i just put that Java comment in because i think sun does a decent job with it. and the "who knows what micrsoft..." was with regard to a Java type language. I dont think a microsoft product could pull off the built in security standards like Java has. (i dont mean to turn this into a microsoft vs. the world thread so ignore me if your a micro-shaft fan)

  9. #9
    Registered User
    Join Date
    Apr 2003
    Posts
    52
    i don't really think gates is some ignorant fool...many people play him out to be though, i don't know what he does at microsoft but it's sorta dumb to assume that he a)is always out to screw us all over and b)doesnt know about the technology his company makes...i don't have any validity for these statements except that i read his biography a long long time ago and he is very bright, i have respect for him because he is smart and cunning as hell in the field of business....

  10. #10
    Perspective> Oh, my bad.

  11. #11
    i want wookie cookies the Wookie's Avatar
    Join Date
    Oct 2002
    Posts
    455
    i tried C# i didnt really like it. i heard the ide for .net was written in c#

    directx will be used in the longhorn interface too so its not primarily for games ones longhorn is out

  12. #12
    the hat of redundancy hat nvoigt's Avatar
    Join Date
    Aug 2001
    Location
    Hannover, Germany
    Posts
    3,130
    I dont think a microsoft product could pull off the built in security standards like Java has.
    Then you might want to have a look at .NET. Java's security is outdated. It's all or nothing, not much of a standard anyway. If you need security, .NET is the better concept.
    hth
    -nv

    She was so Blonde, she spent 20 minutes looking at the orange juice can because it said "Concentrate."

    When in doubt, read the FAQ.
    Then ask a smart question.

  13. #13
    booyakasha
    Join Date
    Nov 2002
    Posts
    208
    I think C# .NET would be the best bet for making games now

  14. #14
    Crazy Fool Perspective's Avatar
    Join Date
    Jan 2003
    Location
    Canada
    Posts
    2,640
    Originally posted by nvoigt
    Then you might want to have a look at .NET. Java's security is outdated. It's all or nothing, not much of a standard anyway. If you need security, .NET is the better concept.
    i havent looked into .NET yet. Although i fail to see how java's security is outdated. to this day there is still no official report of anyone breaking java's internal security (ex. writing an applet virus). i will try to dig up the link that supports this....

    *note i am not trying to say java is more secure than .NET as i dont really know anything about the .NET architecture.

  15. #15
    Registered User
    Join Date
    Jan 2002
    Location
    Vancouver
    Posts
    2,212
    Originally posted by Perspective
    (ex. writing an applet virus)
    woah, that would be soo cool.

Popular pages Recent additions subscribe to a feed