It's always helpful when learning a new programming language or development environment to either examine any provided sample applications or generate a bare-bones application to study. That way, you can see how a working application's source code is formed in terms of syntax, include files or declarations that are needed, necessary compiler or linker options, and so on. Therefore, at this point, let's create a simple Managed Extensions console application:
Start the Visual Studio .NET AppWizard by selecting New Project from the File menu.
Once the New Project dialog is displayed, select the Visual C++ Projects project type and then click the Console Application (.NET) icon in the Templates list ...