Home Page (Projects) | Overviews | How Do I... Topics | NMAKE Reference
You can create a single source file and then build a console program directly from that source file. This method is generally useful only for relatively simple programs.
To build a console program from a single source file
If you don't use a valid file extension, Visual C++ does not build anything because it cannot find a type of source file in the project to build.
Visual C++ creates a default project workspace using the base name of the source file as the base name for the project. It uses default settings for a console program for the project configuration and builds the program.