Tuesday, July 28, 2009

How do I create a C program using Visual C++ 2005 Express Edition?

When I want to create a new project, the only available project type is "Visual C++". However, I want to create a C project. How do I go about doing this?





Thanks.





(As mentioned, I am using Microsoft Visual C++ 2005 Express Edition.)

How do I create a C program using Visual C++ 2005 Express Edition?
You can create a C program with a C++ project. I've done it many times. I don't have the Express Edition but I doubt it would be different. It should compile and run fine.





I usually just create a Win32 program within Visual C++. All I'm writing is C code though and it works.





Saw your comment, just create new source files and name them with a .c extension like the writer below wrote. Then you can start writing C code. You compile them and run them like any other project you create with Visual Studio. I usually debug until I got it right. Then I go up to Build -%26gt; Build Solution. Then the executable will be in your project folder. This is what you want to know how to run it, maybe? Good luck.
Reply:He's right.


Create it as a C++ project, and use .c file extensions.

hibiscus

No comments:

Post a Comment