• 0

[C++] Coding in C++ using Visual Studio 2005, but not using .NET


Question

Hey guys.

Basically, I was wondering if it was possible to code in C++ using Visual Studio 2005, but without any sort of .NET dependencies. I'm a game programmer, I always start off my games using the Win32 Console App and pretty much never use .NET's additional features and have been taught to use the standard features of C++ as well as the STL, and that's pretty much what I use (well, I use other things, but my point is I don't use .NET). Of course, I've always been taught using VS and feel pretty comfortable in it, and don't necessarily fancy changing any time soon (although I am exploring GCC and other compilers).

My question is if I don't ever use .NET features, will my compiled application still require .NET due to some automatic settings made when using the VS Wizard, and if so, how do I change these?

Many thanks guys.

Link to comment
Share on other sites

9 answers to this question

Recommended Posts

  • 0

No. Unless you create the project with a .NET template, or explicitly tell it to use the .NET runtime (CLR) in the properties, it will have no dependencies on .NET at all. The only dependency will be the Visual Studio runtime (unless you disable that). This goes for all versions of VS, including 2005, 2008 and 2010.

Link to comment
Share on other sites

  • 0

Don't avoid GCC though, its a great alternative compiler, and my primary C++ compiler. It also provides great insight into how C++ code compiles. I don't know how it fares these days, but it historically has always been a much better compiler than MS own C++ compiler.

Link to comment
Share on other sites

  • 0
I don't know how it fares these days, but it historically has always been a much better compiler than MS own C++ compiler.

I'm sorry, but that just not true.

It's sad that Open Source acquired religion status when even thinking of some aspect being in any way inferior is often considered blasphemy.

Link to comment
Share on other sites

  • 0
I'm sorry, but that just not true.

It's sad that Open Source acquired religion status when even thinking of some aspect being in any way inferior is often considered blasphemy.

It is in fact very true. Microsoft's Visual C++ compiler at one point didn't support, partially supported, or incorrectly supported quite a few features of ANSI C++ (e.g. The "for" loop scope error), and put its compliance with the C++ standard at around 60%. The compiler has since improved drastically, and from around the release of VS.NET the differences are negligible, and to an extent now probably favour VC++ on windows, but at one time this was not the case. This being the case, it is still worth knowing GCC because VC++ obviously doesn't work on other platforms such as Linux and OSX, and GCC knowledge would be particularly useful here.

Edited by Majesticmerc
Link to comment
Share on other sites

  • 0
It is in fact very true. Microsoft's Visual C++ compiler at one point didn't support, partially supported, or incorrectly supported quite a few features of ANSI C++

We are not anymore in 90's !!!

VS.NET 2008 is absolutely compliant and unbeatable on all points.

It's the only serious IDE for Professional consultants, and is used in all Big Companies.

GCC is completely outdated....

Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.