That's odd...

A

apaticul

Now that I can compile ".cpp" files in Microsoft's Visual C++ 2008
I still can't figure out how to compile a ".c" file, since
every time I do it, the extension is changed to ".c.cpp"

Any tips? (I mean here, those folks that have been used Visual C++
before, because I need
some advice on concrete terms, such as: "go to View-Other Windows- etc
etc" than click here, etc )

Thanks in advance.
 
D

dj3vande

Now that I can compile ".cpp" files in Microsoft's Visual C++ 2008
I still can't figure out how to compile a ".c" file, since
every time I do it, the extension is changed to ".c.cpp"

Any tips? (I mean here, those folks that have been used Visual C++
before, because I need
some advice on concrete terms, such as: "go to View-Other Windows- etc
etc" than click here, etc )

The people in comp.os.ms-windows.programmer.win32 are probably the best
ones to answer questions like that.


dave
 
J

Jim Langston

Now that I can compile ".cpp" files in Microsoft's Visual C++ 2008
I still can't figure out how to compile a ".c" file, since
every time I do it, the extension is changed to ".c.cpp"

Any tips? (I mean here, those folks that have been used Visual C++
before, because I need
some advice on concrete terms, such as: "go to View-Other Windows- etc
etc" than click here, etc )

Thanks in advance.

In the save as dialog, drop down the "Save as type..." and select "C source
file (.C)"
 
A

apaticul

The people in comp.os.ms-windows.programmer.win32 are probably the best
ones to answer questions like that.

dave

--
Dave Vandervies                                    dj3vande at eskimo dot com
If I had to choose one or the other, though, I'd choose Sedgewick (mainly on
the grounds that I have a dozen copies of "C Unleashed" on my shelf already).
                                          --Richard Heathfield in comp.lang.c

Here we go again ;-) (Told ya!)
Why would I want to go all across town to the "Organic Natural foods
store"
when I can buy my cup of coffee at 7/11 around the corner?
 
A

apaticul

In the save as dialog, drop down the "Save as type..." and select "C source
file (.C)"

Jim Langston, I'll get bet to you in a bit, as soon as I will check
another option,
so far, the problem is, the only way I succeeded in compiling a file
(which was a .cpp file)
was when I've used the feature "Precompiled Header File", and this one
seems to be a ".cpp" Header File.
I will try to see if I can skip this step, so I might be able to save
my hello.c file
in a proper format (.c)
I can't remember all the steps I've used when I failed before to "save
as .c"
(which became .c.cpp anyhow) so I could follow-up with you, Jim,
but I will retry it.
 
A

apaticul

Now that I can compile ".cpp" files in Microsoft's Visual C++ 2008
I still can't figure out how to compile a ".c" file, since
every time I do it, the extension is changed to ".c.cpp"

Any tips? (I mean here, those folks that have been used Visual C++
before, because I need
some advice on concrete terms, such as: "go to View-Other Windows- etc
etc" than click here, etc )

Thanks in advance.

Finally, I solved the problem.
I will perhaps create a youtube video tutorial for others, later on.
Here is what I initially didn't noticed:
First, you've got to click File-New-Project
then under "Project Type" highlight Win32
under Templates (on the right side) highlight Win32 Console
Application
then enter a name of your project let's say "Test1" than click ok
then click "Next"
Under Application Type leave "Console Application"
Under Additional Options "Empty Project", then click "Finish"
then, on the left side, under "Solution project"
right click on "Source File" click Add new item
here in the name enter "main.c" or some other name (make sure you
delete pp from .cpp), leave "Location" as it is there
here under "Categories" leave Visual C++ and on the right side, under
"Templates" click on "C++ File (.cpp)
click "add"
and now on the right side paste your code (for ex
#include <stdio.h>

main()
{
printf("hello, world\n");


}

then click on "Build Solution" under "Build"
and finally, click on "Start without Debugging" under "Debug"
and you'll get the command prompt with "Hello, world"

I hope this helps any other usenet folks using Vista or
M Visual C++ (or both)
"
 
A

apaticul

(e-mail address removed) said:



It seems that when your previous arrogant, hostile, offensive, and
incidentally off-topic question was met with indifference from everyone
except our resident trolls, you learned nothing from the experience. Your
analogy, by the way, is broken. The comp.os.ms-windows.programmer.win32
newsgroup Dave mentioned is far more like a 7-11 for all MS programming
questions than comp.lang.c could ever be.

For as long as you continue to fail to understand Usenet, you'll continue
to get pleasant, smugly sympathetic, and almost always *wrong* answers
from the group's trolls, and not much else. If you want expert answers,
ask experts. Expertise in driving the Microsoft IDE is far more likely to
be shown in comp.os.ms-windows.programmer.win32 than it is here.

Incidentally, if you don't already *know* the answer to your question (and
just about any Notepad power-user does know), you may need to spend a few
more months or even years using Windows before you're ready to start
programming for it.

--
Richard Heathfield <http://www.cpax.org.uk>
Email: -http://www. +rjh@
Google users: <http://www.cpax.org.uk/prg/writings/googly.php>
"Usenet is a strange place" - dmr 29 July 1999

Well, I guess I've made my own coffee this time, (but don't tell
anyone that I've used some
tiny bit of half/half cream with it, all natural.- just kidding)
 
A

apaticul

(e-mail address removed) wrote:

... big snip ...


More practical, you should learn to snip quotation portions that
are not relevant to your reply.

Sorry but I use googlegroups so here its a different option, "more" or
"hide"
OK, I will try to delete the above content, but in most cases I may
need it anyway since I'm responding to it.
 
K

Keith Thompson

Sorry but I use googlegroups so here its a different option, "more" or
"hide"
OK, I will try to delete the above content, but in most cases I may
need it anyway since I'm responding to it.

As I understand it, the "more" and "hide" options control what you see
when reading an article, not what's included when you post a followup.

In any case, you certainly weren't responding to Chuck's signature
(the stuff following the "-- " delimiter).

You need to *manually* delete parts of the previous article that
aren't relevent to your followup.
 
H

Herbert Rosenau

Sorry but I use googlegroups so here its a different option, "more" or
"hide"
OK, I will try to delete the above content, but in most cases I may
need it anyway since I'm responding to it.

No, there are enough newsreaders and newsservers around that nobody
who has brain for only 2 cent has a need to go through google to use
something that is not designed to work on newsgrous. Anybody who
useses googlegroups is knows as a twit gets automagically filtered by
many of the users of usenet.

--
Tschau/Bye
Herbert

Visit http://www.ecomstation.de the home of german eComStation
eComStation 1.2R Deutsch ist da!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,677
Members
48,796
Latest member
Greg L.

Latest Threads

Top