in
Welcome to Lionhead Community Sign in to Windows Live ID | Help

A couple of quick c# questions

Last post 10-23-2009, 17:29 by XALAN. 7 replies.
Sort Posts: Previous Next
  •  01-11-2009, 19:34 3278110

    A couple of quick c# questions

    Ok prompted by the deluge of c++ vs c# debates on this board and others I had a couple of quick questions:

    1) The Standard Library
    A golden rule of programming is not to reinvent the wheel, and the standard library in c++ is so useful that I was wondering are there standard libraries in c# that are as G o o d [Good] as the c++ standard library?

    2)Platform dependence
    I know about MONO for non windows/.net use, but what about non-MS game consoles? For example does anyone know of compilers that assemble and link c# code for running on the PS3, DS, PSP or Wii?

    Thanks in advance!
  •  01-11-2009, 22:11 3278265 in reply to 3278110

    Re: A couple of quick c# questions

    to answer number 1 no there arent c++ s. lib. is superior well unless they just came up with sumthing new for the c# but otherwise nope. and number 2 no idea search it on google

  •  01-15-2009, 18:51 3284068 in reply to 3278110

    Re: A couple of quick c# questions

    Isn't the .net-framework a some sort of standard library?

    There are at least very many classes, namespaces and methods in it.
  •  01-18-2009, 17:32 3287473 in reply to 3278265

    Re: A couple of quick c# questions

    artiboi21:
    to answer number 1 no there arent c++ s. lib. is superior well unless they just came up with sumthing new for the c# but otherwise nope. and number 2 no idea search it on google


    What?

    The STANDARD libraries in C# are as above in arnehansen's post, they are the .NET framework (although, there are different subsets of this, for compact devices, the Xbox 360 etc).

    There are many, many more functions, useful classes, etc within the .NET framework than in the standard libraries in C++, but for every one of these, you can probably download a library from the internets and use that in C++ for similar functionality.

    There is no debate to be had here, it completely depends on your target platform, your target audience and your desired function. Use whatever is most convenient.

    With the latter question, no - I am not aware of any such things, you'd need either a version of the .NET Framework running on those devices, or a compiler to generate native code from C# for those devices.
    I have no idea what I am talking about
  •  03-03-2009, 16:32 3311281 in reply to 3287473

    Re: A couple of quick c# questions

    The first part of your question has already been answered. There are loads of standard libraries for C#, including loads of cool new features for Azure, Linq, SharePoint office etc. The first poster is I guess just pulling your leg or something!

    Strangely, I have a friend who is a games developer [at a large first tier company] and on his personal project he wrestles with the cross platform question. The only real answer he has ever came up with is Java, which is broadly support on all platforms, I'm pretty sure the only one he was having problems with on Java support was the PS3.

    Aside from Java, C++ is as close as I think you're likely to get, but XNA won't allow you to do the cool stuff Smily [:)]

    HTH.
  •  10-01-2009, 10:59 3408651 in reply to 3278110

    Re: A couple of quick c# questions

    Not really much else for me to add that hasn't been said. I do know that a version of MONO is currently being developed for the PS3's operating system.
  •  10-01-2009, 12:50 3408708 in reply to 3311281

    Re: A couple of quick c# questions

    Foxsake:
    but XNA won't allow you to do the cool stuff Smily [:)]

    Like what?

    [Serdan dot EU][Emotiv]
  •  10-23-2009, 17:29 3414099 in reply to 3408708

    • XALAN is online. Last active: 11-24-2009, 12:18 XALAN
      cake eater
    • Not Ranked
    • Minnesota, USA
    • Member
    • old karma : 10

    Re: A couple of quick c# questions

    I wonder if there is anything preventing you from mixing your own Managed C++ libraries in with the C# code. And for that matter native C++? You could use Managed C++ as a facade to the native C++. It might work on the pc, but probably not if you wanted to compile it for the XBox 360.
    http://thnogg.mybrute.com
View as RSS news feed in XML