Hi -
Programming a .Net application in C++ is kind of like programming a Java application in Ada. You can *do* it (
http://code.google.com/p/jgnat/) ... but why bother?
Despite Microsoft's claim of being "language agnostic" (which, btw, isn't "untrue"...) ... VB.Net and C# are really the only two languages I'd recommend (and of course ASP.Net for server-side web pages).
Conversely, coding "standard C++" (managed or unmanaged code) has become increasingly unpleasant with newer versions of VS2008 - I'd prefer GCC for C/C++ any day :-)
All my own opinions (for whatever it's worth): but I'd definitely recommend *not* trying to program .Net on C++.
IMHO .. PSM
PS:
Your code snippet is .Net-to-the-max: I have no idea how I'd go about trying to compile, link and run it with Gcc (for example).
PPS:
You might also be interested in looking at Microsoft's "Visual Studio Express" offerings here (they're perfectly functional, and great tools):
http://www.microsoft.com/express/