PDA

View Full Version : How to compile C in visual studio


spadez
02-16-2009, 11:30 PM
Hi,

I have a basic C program which I am trying to compile in visual studio. It is a program designed to be run in windows in command prompt.

Ive been searching for tutorials on how to do this, either im doing it wrong (i get compile errors with even the most basic script) or I cant make heads or tails of the instructions.

Firstly, how should I open my C code within visual studio. Do I open it up as a .c file or should I paste the code into the window. If I should be the doing the latter, what file should I be creating? A Win32 console application with precompiled header?

Thanks for any help you can give.

James

Spookster
02-17-2009, 05:29 AM
Have you created a project and workspace and added your source and header files to it yet?