Visual C++ 6.0 From Deitel and Deitel

G

George

I hate to bug you old timers and pros that use C++. So if you
will spare me a small moment then I be out of your hair. I
am taking a C++ class and got this CD with the book. You would
think the college class would use the same software in the classroom
as that provided on the CD. Not so. Anyway, I got MS C++ 6.0.
If you want to read the final problem, skip to step 18. 1-17
leads up to how I get there however.

Here is the steps that leads to my downfall:
1. Start the C++ program
2. Do a File -> Open. To open sample program like Sample1.cpp
3. It opens fine in the C++ window. I can see the code.
4. From the menu do Build -> Compile Sample1.cpp
5. I am told the "build command requires and active workspace
Would you like to create one." I click Yes.
6. Sample1.cpp Builds with 0 error(s) and 0 warning(s).
7. Then I use the menu to Build -> Execute Sample1.exe.
8. I am told "Debug\Sample1.exe needs to be built. Would you like
to build it?"
I click Yes. Sure go ahead.
9. It builds and up comes a command tool with the program.
Looks good. Things are great.
10. So I read on in my book and then come to sample2.cpp.
11. I do a File -> Open and get sample2.cpp.
12. It opens in the window and I can see the code.
13. Again I do Build -> Compile Sample2.cpp
14. I am told it is not part of my project and do I want to include it.
15. I click Yes.
16. Then from the menu I click Build -> Compile sample2.cpp.
17. It compiles with no errors or warnings.
18. Here is my downfall and source of confusion. There is no
line that says Build -> Sample2.exe as in step 7. I can't find
any way to build it and execute except to Exit the program and
start over using sample2.cpp from the beginning. Build All does
not work. I can't find any menu item to get past this.

Any ideas?
Thanks to all.
 
J

John Harrison

George said:
I hate to bug you old timers and pros that use C++. So if you
will spare me a small moment then I be out of your hair. I
am taking a C++ class and got this CD with the book. You would
think the college class would use the same software in the classroom
as that provided on the CD. Not so. Anyway, I got MS C++ 6.0.
If you want to read the final problem, skip to step 18. 1-17
leads up to how I get there however.

Here is the steps that leads to my downfall:
1. Start the C++ program
2. Do a File -> Open. To open sample program like Sample1.cpp
[snip]

Any ideas?
Thanks to all.

This group is for questions on the C++ language. 'How do I use my compiler?'
does not cut it. Suggest you either read the documentation, or ask again in
a relevant group such as
john
 
J

John Harrison

John Harrison said:
George said:
I hate to bug you old timers and pros that use C++. So if you
will spare me a small moment then I be out of your hair. I
am taking a C++ class and got this CD with the book. You would
think the college class would use the same software in the classroom
as that provided on the CD. Not so. Anyway, I got MS C++ 6.0.
If you want to read the final problem, skip to step 18. 1-17
leads up to how I get there however.

Here is the steps that leads to my downfall:
1. Start the C++ program
2. Do a File -> Open. To open sample program like Sample1.cpp
[snip]

Any ideas?
Thanks to all.

This group is for questions on the C++ language. 'How do I use my compiler?'
does not cut it. Suggest you either read the documentation, or ask again in
a relevant group such as

Here's a hint. A C++ program can be composed of more than one source file,
so when you asked the computer to compile Sample2.cpp in step whatever it
was, do you think it should have forgotten all about Sample1.cpp? Find out
how to tell the compiler that you are starting again and you'll have the
answer. Shouldn't be too hard, there's only so many menu options to choose
from.

Good luck in learning C++, and feel free to ask questions about the C++
language here.

john
 
J

JaSeong Ju

Sure.
Dump Deitel's book, buy Stroustrup's book instead.
Dump Windows Visual C++ and install linux
and do C++ there.
 
P

Petec

JaSeong said:
Sure.
Dump Deitel's book, buy Stroustrup's book instead.
Dump Windows Visual C++ and install linux
and do C++ there.

While I agree that Stroustrup's book is good, I feel it's not good advice to
advise anyone to use a different OS.
I, personally, would find using Linux more fun than Microsoft's Windows, but
the fact that it's not practical to write programs targetting Windows on
Linux, along with a few other essintial peripheral's having no Linux
drivers, makes it impractical for me to do so. I suspect a lot of other
people are in a similar position.

- Pete
 
R

Roger Leigh

Petec said:
I, personally, would find using Linux more fun than Microsoft's
Windows, but the fact that it's not practical to write programs
targetting Windows on Linux,
[...]

This is incorrect. I spend most of my time each day writing software
on GNU/Linux that will also run on MS Windows. The software is
written using Standard C++, along with the excellent GTK+ and Gtkmm
graphics libraries; it performs identically on both platforms.
 
K

Kevin Goodsell

Roger said:
[...]

This is incorrect. I spend most of my time each day writing software
on GNU/Linux that will also run on MS Windows. The software is
written using Standard C++, along with the excellent GTK+ and Gtkmm
graphics libraries; it performs identically on both platforms.

Please correct me if I'm wrong, but isn't it true that 1) this requires
extra software to be installed to run on Windows and 2) the applications
use non-native widgets on Windows, making the appearance and possibly
the behavior of some widgets inconsistent with other Windows apps?

-Kevin
 
R

Roger Leigh

Kevin Goodsell said:
Roger said:
[...]
This is incorrect. I spend most of my time each day writing software
on GNU/Linux that will also run on MS Windows. The software is
written using Standard C++, along with the excellent GTK+ and Gtkmm
graphics libraries; it performs identically on both platforms.

Please correct me if I'm wrong, but isn't it true that 1) this
requires extra software to be installed to run on Windows

Yes. The GTK+ and GTKmm libraries need installing, perhaps at the
same time as your application.
and 2) the applications use non-native widgets on Windows, making
the appearance and possibly the behavior of some widgets
inconsistent with other Windows apps?

It depends. GTK+ uses "theme engines" to draw the widgets. There
exists an engine to draw using the native Windows widgets, so you can
make it look consistent if you wish. Personally, I prefer the
standard theme, which is much more attractive.
 

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

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,901
Latest member
Noble71S45

Latest Threads

Top