Solved

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

Posted on 1999-01-26
4
224 Views
Last Modified: 2013-12-14
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
Comment
Question by:John500
  • 2
  • 2
4 Comments
 
LVL 4

Accepted Solution

by:
pellep earned 40 total points
ID: 1258393
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
 

Author Comment

by:John500
ID: 1258394
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
 

Author Comment

by:John500
ID: 1258395
In addition to the last (unanswered) question.  What menu will enable me to choose that the program be compiled in ANSI?

Thanks
0
 
LVL 4

Expert Comment

by:pellep
ID: 1258396
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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In our object-oriented world the class is a minimal unit, a brick for constructing our applications. It is an abstraction and we know well how to use it. In well-designed software we are not usually interested in knowing how objects look in memory. …
How to install Selenium IDE and loops for quick automated testing. Get Selenium IDE from http://seleniumhq.org Go to that link and select download selenium in the right hand columnThat will then direct you to their download page.From that page s…
The goal of this video is to provide viewers with basic examples to understand recursion in the C programming language.
The goal of this video is to provide viewers with basic examples to understand and use switch statements in the C programming language.

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question