How do I compile a c program in Visual C++ 2008 express edition? I tried finding a compile button but i couldnt find it

Build --> Build Solution (Hotkey: F7)
Build --> Compile (Hotkey: Control+F7)

And to run:
Control+F5

Member Avatar for fatihpiristine

set file extension to .c not .cpp

How do I compile a c program in Visual C++ 2008 express edition? I tried finding a compile button but i couldnt find it

commented: just copy/paste of original question. -5

You need an open project, to start a new project go either to File>New>Project, or press Ctrl+Shit+N.
Preferably choose the Empty project template.

Then, right click on the Source Files folder to the left and choose Add>New Item...
Then you get a dialog where you can choose the name of your file. When choosing your name, don't forget the .c extension.

After writing your code you are ready compile. Do this by:

  • Build > Build Solution. Or just hit F7.
  • Debug > Start Debugging. Or just hit F5.

There is a green arrow in the toolbar. Just press that and it will start debugging.

My "green button" is gray for some reasons,
that is to say it looks disabled.
Can't find any button that says build, compile, or run.
F7 doesn't work either,
is there some extras I might need to download before??

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.