Visual C++ 6.0 From Deitel and Deitel

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • George

    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.
  • John Harrison

    #2
    Re: Visual C++ 6.0 From Deitel and Deitel


    "George" <george.e.sulli van@saic.com> wrote in message
    news:2913a3e7.0 404061129.5d7ef 4dd@posting.goo gle.com...[color=blue]
    > 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[/color]

    [snip][color=blue]
    >
    > Any ideas?
    > Thanks to all.[/color]

    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_g eneral.

    john



    Comment

    • John Harrison

      #3
      Re: Visual C++ 6.0 From Deitel and Deitel


      "George" <george.e.sulli van@saic.com> wrote in message
      news:2913a3e7.0 404061129.5d7ef 4dd@posting.goo gle.com...[color=blue]
      > 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[/color]

      [snip][color=blue]
      >
      > Any ideas?
      > Thanks to all.[/color]

      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_g eneral.

      john



      Comment

      • John Harrison

        #4
        [OT] Re: Visual C++ 6.0 From Deitel and Deitel


        "John Harrison" <john_andronicu s@hotmail.com> wrote in message
        news:c4v19l$2m7 tck$1@ID-196037.news.uni-berlin.de...[color=blue]
        >
        > "George" <george.e.sulli van@saic.com> wrote in message
        > news:2913a3e7.0 404061129.5d7ef 4dd@posting.goo gle.com...[color=green]
        > > 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[/color]
        >
        > [snip][color=green]
        > >
        > > Any ideas?
        > > Thanks to all.[/color]
        >
        > This group is for questions on the C++ language. 'How do I use my[/color]
        compiler?'[color=blue]
        > does not cut it. Suggest you either read the documentation, or ask again[/color]
        in[color=blue]
        > a relevant group such as news:microsoft. public.vc.ide_g eneral.
        >[/color]

        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


        Comment

        • John Harrison

          #5
          [OT] Re: Visual C++ 6.0 From Deitel and Deitel


          "John Harrison" <john_andronicu s@hotmail.com> wrote in message
          news:c4v19l$2m7 tck$1@ID-196037.news.uni-berlin.de...[color=blue]
          >
          > "George" <george.e.sulli van@saic.com> wrote in message
          > news:2913a3e7.0 404061129.5d7ef 4dd@posting.goo gle.com...[color=green]
          > > 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[/color]
          >
          > [snip][color=green]
          > >
          > > Any ideas?
          > > Thanks to all.[/color]
          >
          > This group is for questions on the C++ language. 'How do I use my[/color]
          compiler?'[color=blue]
          > does not cut it. Suggest you either read the documentation, or ask again[/color]
          in[color=blue]
          > a relevant group such as news:microsoft. public.vc.ide_g eneral.
          >[/color]

          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


          Comment

          • JaSeong Ju

            #6
            Re: Visual C++ 6.0 From Deitel and Deitel

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

            [color=blue]
            > Any ideas?
            > Thanks to all.[/color]

            Comment

            • JaSeong Ju

              #7
              Re: Visual C++ 6.0 From Deitel and Deitel

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

              [color=blue]
              > Any ideas?
              > Thanks to all.[/color]

              Comment

              • Petec

                #8
                Re: Visual C++ 6.0 From Deitel and Deitel

                JaSeong Ju wrote:[color=blue]
                > Sure.
                > Dump Deitel's book, buy Stroustrup's book instead.
                > Dump Windows Visual C++ and install linux
                > and do C++ there.
                >
                >[color=green]
                >> Any ideas?
                >> Thanks to all.[/color][/color]

                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


                Comment

                • Petec

                  #9
                  Re: Visual C++ 6.0 From Deitel and Deitel

                  JaSeong Ju wrote:[color=blue]
                  > Sure.
                  > Dump Deitel's book, buy Stroustrup's book instead.
                  > Dump Windows Visual C++ and install linux
                  > and do C++ there.
                  >
                  >[color=green]
                  >> Any ideas?
                  >> Thanks to all.[/color][/color]

                  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


                  Comment

                  • Roger Leigh

                    #10
                    Re: Visual C++ 6.0 From Deitel and Deitel

                    "Petec" <x@x.x> writes:
                    [color=blue]
                    > 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,[/color]
                    [...]

                    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! =-----

                    Comment

                    • Roger Leigh

                      #11
                      Re: Visual C++ 6.0 From Deitel and Deitel

                      "Petec" <x@x.x> writes:
                      [color=blue]
                      > 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,[/color]
                      [...]

                      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! =-----

                      Comment

                      • Kevin Goodsell

                        #12
                        Re: [OT] Visual C++ 6.0 From Deitel and Deitel

                        Roger Leigh wrote:
                        [color=blue]
                        >
                        > [...]
                        >
                        > 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.
                        >
                        >[/color]

                        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.

                        Comment

                        • Kevin Goodsell

                          #13
                          Re: [OT] Visual C++ 6.0 From Deitel and Deitel

                          Roger Leigh wrote:
                          [color=blue]
                          >
                          > [...]
                          >
                          > 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.
                          >
                          >[/color]

                          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.

                          Comment

                          • Roger Leigh

                            #14
                            Re: [OT] Visual C++ 6.0 From Deitel and Deitel

                            Kevin Goodsell <usenet2.spamfr ee.fusion@never box.com> writes:
                            [color=blue]
                            > Roger Leigh wrote:
                            >[color=green]
                            >> [...]
                            >> 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.
                            >>[/color]
                            >
                            > 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[/color]

                            Yes. The GTK+ and GTKmm libraries need installing, perhaps at the
                            same time as your application.
                            [color=blue]
                            > 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?[/color]

                            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! =-----

                            Comment

                            Working...