Hello, I began to learn C++ in visual studio 2005. I create a new project A and new files, it seems that it allows only one main function in one project. For example, I create Hello.cpp with a main(), Stream.cpp with another main(), When I want to compile and run Stream.cpp, if I compile it using Building Solution or Build A, it will report error that _main already defined in Hello.obj. Currently I use comments to hide the main function in Hello.cpp to make Stream.cpp work. My question is: Is there any way I could compile the single file in a project, like only compile and run Stream.cpp in visual studio 2005? Or creat a single file without project? I tried to create a file without a project, but when I compile it, it still compile the project, any short cut for compiling single file? The menu only give me build solution or build A, I am not familiar with visual studio environmet and want to learn it, (pls do not suggest other environment like borland c as visual studio 2005 is the only one I can use now), It's very annoying to hide every main in previous files, any help would be much appreciated.