How to compile C programs with Microsoft Visual C++ 2005
By default, new applications created in Microsoft Visual C++ 2005 Express edition create C++ source code.
Here is how to compile C code. Launch Visual C++ 2005 Express Edition and create a new project. Choose Win 32 and Win 32 Console Application. Enter a name in the Name box below.
Now press the Next button and then the Finish button. This will generate a file called name.cpp where name is your entered project name. Now look to the Solution Explorer (if you can't see it, click View on the menu th