How to compile C files and execute in VS

Hi Guys Just installed the new VS, and after half an hour can't seem to know how to compile a simple. c file. no compile button, no execute button. Read quite a lot of help dont understand. Help! Thanks.

Windows Software 5498 This topic was started by ,



data/avatar/default/avatar14.webp

507 Posts
Location -
Joined 2000-01-30
Hi Guys
 
Just installed the new VS, and after half an hour can't seem to know how to compile a simple .c file.
 
no compile button, no execute button. Read quite a lot of help dont understand.
 
Help!
 
Thanks

Participate on our website and join the conversation

You have already an account on our website? Use the link below to login.
Login
Create a new user account. Registration is free and takes only a few seconds.
Register
This topic is archived. New comments cannot be posted and votes cannot be cast.

Responses to this topic



data/avatar/default/avatar14.webp

507 Posts
Location -
Joined 2000-01-30
OP
Guys What I meant by this is
 
I installed Visual Studio.NET
 
now in VC++ 6, there was compile button to compile, but here, it not highlighted and build button are not highlighted.
 
when i type a simple c script.
 
main(void)
{
printf("abc");
}
 
and save it as .c, still nothing happens.
 
How do we compile a simple file like this... It is so irritating. Beside they have merged all VB,VC in one?
 
 
ARC


data/avatar/default/avatar32.webp

112 Posts
Location -
Joined 2000-02-10
Build-->Build solution.
 
Or Ctrl+Shift+B
 
Yes they have the same interface for the different languages, but it changes some depending on what type of project you are running.


data/avatar/default/avatar14.webp

507 Posts
Location -
Joined 2000-01-30
OP
Well I figured out that we have to create a project first and then those button would be highlighed.
 
Otherwise if you open a simple .c file you wont be able to compile it as in VC++6


data/avatar/default/avatar32.webp

112 Posts
Location -
Joined 2000-02-10
I know, you have to have a prosject.