Jump to content
  • Advertisement
Sign in to follow this  
shrek2

Visual C++.net vs Visual C#.net

This topic is 4228 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

1) which is the best for game programming? 2) which is easier to learn for game programming?

Share this post


Link to post
Share on other sites
Advertisement
This cannot be answered in one sentence (or even 15.)
Try both and decide for yourself.
If it would be a matter of one being simply better, wouldn't you think you wouldn't have heard of the other?

Share this post


Link to post
Share on other sites
well i'm currently learning c++ for game programming and i can't believe how much code you need to write in c++ just just to create a simple windows program. i like the forms in .net much better. care to spend more that a few sentences describing your views?

Share this post


Link to post
Share on other sites
HansDampf: Have you heard of Brainfuck? ;-)

Shrek2:
1) Both of the languages are currently used to develop games by hobbyists and proffesionals alike. None of them have game specific features, so I'd say they're equally good or bad. C++ allegedly has some more options for manual optimization.

2) C# (probably with the XNA framework)

It's generally easier to learn and use a modern language (implies automatic memory management) like C#, Java, or any of the scripting languages like Python, etc.

You will be productive in those languages much faster than you will in C++, and your productivity is likely to stay higher too.

Share this post


Link to post
Share on other sites
why do industry professionals use c++ when c# seems much easier? almost all the programming job advertisements want c++. is the reason simply because there's a lot of legacy code and people don't want to reinvent the wheel? will most professionals choose c# if they can start all over again?

Share this post


Link to post
Share on other sites
C# isnt crossplatform and/or the code is not as secure as C++
C# its more like java it works on the .net framework.

Preferably i like C++ you have much more control over stuff.
If you want to program easy C# is the way to go

Share this post


Link to post
Share on other sites
C++ is still the industry standard because alot of the APIs are still written in C/C++ and C++ is still a little bit faster than C#. Also I don't believe C# was designed to become the industry standard in gaming programming. Each programming language has it purpose and even tho C#, because of the XNA framework, can do game programming, does not mean it should be the standard. This also does not mean you should not use it for you game programming. Use whatever works best for you.

Share this post


Link to post
Share on other sites
1) You first question is not easy to answer, however this is my opinion... C++ is currently the path of least resistance to create games that meet todays expectations regarding game performance. It also has overwhelming momentum in the commercial games industry. .NET managed code is the future. A hybrid transition period where native C++ and C# are both used (think platform developers vs. content developers) will probably exist for a while. Eventually C++ will be marginalized to the lowest of levels; just like Assembly Language has been.

2) You second question is easy.. C#/XNA is much easier to learn than C++/DirectX.

Share this post


Link to post
Share on other sites
From my understanding C# is cross platform with the MONO framework for Linux.

Also, One point about what I do like about C++ is that you do have more control and have the ability to add ASM code with in your project to gain a little extra speed.

Share this post


Link to post
Share on other sites
The reason I use C++ rather than C# is that C++ doesn't run on anything but Microsoft operating systems (Except Mono). That means no consoles except the 360, and even then the C# code is much less efficient.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!