Why does the C++ "Hello World" project generated by Visual Studio look a little strange? -


i'm new c++ programming (although have experience in java, c#, , visual basic). have used visual studio 2010 create default "hello world" example project, when investigate sample code generates, looks little bit different code see when looking @ c++ tutorials.

in investigations, i've learned there 2 versions of c++, or @ least 2 different standards. think they're called clr , cli. standard or version must learn program further in future?

there's regular, plain-old, iso-standards-based c++ kind you're seeing in tutorials. if want write windows applications in regular c++, targeting win32 api (or using set of classes wrap basic functionality of win32 api, such mfc).

then there's c++/cli, can thought of entirely new language (albeit superset of c++) includes microsoft's extensions in order support .net framework. standardized ecma-372. .net framework runs on top of clr, version of c++ compatible clr called "c++/cli".

you want ignore c++/cli variant of language right entirely. it's useful in interoperability scenarios .net code. since appear want learn c++, cli stuff going confusing distraction. want learn real c++, not .net framework grafted on top of c++. if want learn .net, start either c# or vb.net, instead.

a bit more information on distinction between c++ , c++/cli available in my answer here.


Comments

Popular posts from this blog

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -