Yes, a pure Win32 Console app.
This is a discussion on Executing C Program in Visual Studio 2008 within the C Programming forums, part of the General Programming Boards category; Yes, a pure Win32 Console app....
Still can't get it to work. Could someone please just send me a link to another C compiler
i also am not getting c to run from VS 2005. can someone give me the steps
i go to new project, click c++ and then WIN 32 console app. it opens up a few c++ files and a header file. i then try to add my file, main.c and put in a hello world, and doesnt compile, do you have to compile from command line, thanks for your help
EDIT: This is answering jjfait, who is the poster above me.
"it opens up a few c++ files and a header file"
This is because it's opening the project as a C++ project, so adds some additional C++ code.
File > New Project > WIN 32 console app > OK > Welcome to win32 application wizard > next > console ap + empty project > finish.
This will create an empty project, with no C++ codes/files.
Last edited by happyclown; 02-10-2009 at 07:18 PM.
I love Visual Studio it's the only place I feel at home and now that I can program C in this baby I'm completely over the moon!
Well... not completely over the moon... I don't really get kicks out of writing code... but let's just say you've solved a big problem of mine
You just need Visual C++ 2008 Express Visual Studio 2008 Express Editions and when you create new projects, do an EMPTY project from GENERAL projects, then when you add files, right click on SOURCE FILES and ADD NEW ITEM, then just name your file <filename>.c (remember to specify the extension when you name the file!) to override the default extension .cpp and the IDE and everything else will treat your code as C.
Also, you DON'T need an empty project. It will create a default project for you that will compile fine (although it creates a C++ file, but you can rename them). Remember that by default it also creates a precompiled header, which means you must add #include "stdafx.h" at the beginning of every source file.
I'm not certain if it includes C++ headers in stdafx.h by default. I don't think so...
I agree that you should just use Visual Studio C++ Express Edition.
It's a complete program, not a trial - and as a beginner I am finding it to be an absolutely superb IDE for learning how to program in C and C++. I've used various other IDEs with other languages and VSC++ is by far and away the best I've ever used. Intellisense is fantastic as a learning tool when you're starting out with things such as passing pointers to structs around and the like. There's many a time it's made me realize exactly what I was doing wrong. I love it.
The only difference is that your program will crash or you will get a runtime error dialog if something goes wrong in non-debugging mode. In debugging mode, the debugger will break where the error occurred.
And debugging mode gives you access to debugging features, naturally.
HOPE YOU UNDERSTAND.......
By associating with wise people you will become wise yourself
It's fine to celebrate success but it is more important to heed the lessons of failure
We've got to put a lot of money into changing behavior
PC specifications- 512MB RAM, Windows XP sp3, 2.79 GHz pentium D.
IDE- Microsoft Visual Studio 2008 Express Edition
My first post.
I am trying to compile a C program in VS 2008. When I try to compile my simple "Hello World" program in C I get the following error.
Error spawning rc.exe
I created an empty win32 console application, then added a file Test.c