Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 234
  • Last Modified:

Is it possible to create a (.)c file compiling in Visual Studio 6.0

I need to get familar with the Visual Studio development tool using Visual C++.  For the time-being, I want to create .c code not .cpp.  How is this done and how can I set the interface/workspace so that there aren't 450 options to click on.  The default interface is entirely too busy in my opinion.

I desire a step by step response to create a new workspace that will compile in C.

Thanks
0
John500
Asked:
John500
  • 2
  • 2
1 Solution
 
pellepCommented:
Menu->File->New.
Choose the tab 'projects'.
Select Win32 Application or Win32 Console Application.
Fill in desired name and press OK.
Next,
Menu->File->New.
Choose tab 'files'
select c++ source file, BUT when specifying FileName, add extension '.c' (like myfile.c).
Voila. The code in that file will compile using c-compiler.
0
 
John500Author Commented:
Ok, great.  Can I tack on one or two more simple questions?  That is:

I have compiled code and now have errors.  The errors are listed in the docked window.  How can I get more info on each error?  For example, in Borland, if you hit the F1 key, the help file is launched on the appropriate error subject.

Thanks
0
 
John500Author Commented:
In addition to the last (unanswered) question.  What menu will enable me to choose that the program be compiled in ANSI?

Thanks
0
 
pellepCommented:
Errors: select the error you wish to get help on (doubleclick it) place the marker over the errornumber and hit F1

ANSI: If you make sure you only use ANSI-compliant functions and. The standard C/C++ libraries are all ANSI-compliant. To disable all microsoft specifics, in your project do
meny->project->settings
chose c/c++ tab.
choose 'customize' category
select 'Disable language extensions'
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now