473,395 Members | 1,578 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Visual C++ 6.0 From Deitel and Deitel

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.
Jul 22 '05 #1
13 2135

"George" <ge***************@saic.com> wrote in message
news:29**************************@posting.google.c om...
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 news:microsoft.public.vc.ide_general.

john

Jul 22 '05 #2

"George" <ge***************@saic.com> wrote in message
news:29**************************@posting.google.c om...
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 news:microsoft.public.vc.ide_general.

john

Jul 22 '05 #3

"John Harrison" <jo*************@hotmail.com> wrote in message
news:c4*************@ID-196037.news.uni-berlin.de...

"George" <ge***************@saic.com> wrote in message
news:29**************************@posting.google.c om...
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 news:microsoft.public.vc.ide_general.


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
Jul 22 '05 #4

"John Harrison" <jo*************@hotmail.com> wrote in message
news:c4*************@ID-196037.news.uni-berlin.de...

"George" <ge***************@saic.com> wrote in message
news:29**************************@posting.google.c om...
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 news:microsoft.public.vc.ide_general.


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
Jul 22 '05 #5
Sure.
Dump Deitel's book, buy Stroustrup's book instead.
Dump Windows Visual C++ and install linux
and do C++ there.

Any ideas?
Thanks to all.


Jul 22 '05 #6
Sure.
Dump Deitel's book, buy Stroustrup's book instead.
Dump Windows Visual C++ and install linux
and do C++ there.

Any ideas?
Thanks to all.


Jul 22 '05 #7
JaSeong Ju wrote:
Sure.
Dump Deitel's book, buy Stroustrup's book instead.
Dump Windows Visual C++ and install linux
and do C++ there.

Any ideas?
Thanks to all.


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
Jul 22 '05 #8
JaSeong Ju wrote:
Sure.
Dump Deitel's book, buy Stroustrup's book instead.
Dump Windows Visual C++ and install linux
and do C++ there.

Any ideas?
Thanks to all.


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
Jul 22 '05 #9
"Petec" <x@x.x> writes:
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.
--
Roger Leigh

Printing on GNU/Linux? http://gimp-print.sourceforge.net/
GPG Public Key: 0x25BFB848. Please sign and encrypt your mail.
-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 100,000 Newsgroups - 19 Different Servers! =-----
Jul 22 '05 #10
"Petec" <x@x.x> writes:
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.
--
Roger Leigh

Printing on GNU/Linux? http://gimp-print.sourceforge.net/
GPG Public Key: 0x25BFB848. Please sign and encrypt your mail.
-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 100,000 Newsgroups - 19 Different Servers! =-----
Jul 22 '05 #11
Roger Leigh wrote:

[...]

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
--
My email address is valid, but changes periodically.
To contact me please use the address from a recent posting.
Jul 22 '05 #12
Roger Leigh wrote:

[...]

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
--
My email address is valid, but changes periodically.
To contact me please use the address from a recent posting.
Jul 22 '05 #13
Kevin Goodsell <us*********************@neverbox.com> writes:
Roger Leigh wrote:
[...]
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.
--
Roger Leigh

Printing on GNU/Linux? http://gimp-print.sourceforge.net/
GPG Public Key: 0x25BFB848. Please sign and encrypt your mail.
-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 100,000 Newsgroups - 19 Different Servers! =-----
Jul 22 '05 #14

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

13
by: George | last post by:
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...
6
by: blueblueblue2005 | last post by:
Hi, I am reading the const function definition part in Deitel book, it says : Defining as const a member function that calls a non-const member function of the class on the same instance of the...
14
by: __frank__ | last post by:
What do you think about the following book: "C How to Program", 4th edition, ISBN: 0131426443 I'm a novice. Thanks in advance.
4
by: James Thompson | last post by:
I'm sure this question has been asked a hundred times. I did a google search and found some older post and some mixed reviews. I am looking for an updated opinion on which book is the best for...
3
by: Ken | last post by:
What are the differences between Visual C++ 6.0 and Visual C++.NET Any books are good for beginner? (I can write in VB but I don't know any C++ language (please suggest book name and publisher)
0
by: Cezus | last post by:
Good day, Im a beginner at C# and i use the book Visual C# 2005: How to program from Deitel/Pearson. I want to build a simple Anime (movie) database. It contains a list box with all the anime...
12
by: Mitch | last post by:
I'm wondering if I'm doing myself a disservice by learning Visual C#, considering it does so much of the work behind the scenes. Should I be learning console apps first? I still haven't found...
6
by: nembo kid | last post by:
According to accu.org, Deitel's "How to program" is not reccomended. I don't agree. I have the 3rd ed. and I find it ok. What do you think about this book? Thanks in advance.
2
by: Beany | last post by:
Hi, ive recently purchased a copy of this book.......im at the beginning stages and working on the last exercises of Chapter 2. But ive noticed that these exercises are quite difficult and Chap2...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.