Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Urgent Help Needed  (Read 2876 times)

0 Members and 1 Guest are viewing this topic.

Computer Beginner

    Topic Starter


    Rookie

    Urgent Help Needed
    « on: April 17, 2009, 06:36:58 AM »
    I have a Vista computer. I went to the microsoft website and downloaded 'Visual c++ 2008 express edition'.

    The setup came up. It began downloading all of the 9 different components (96mb in total). It did this and once it had finished (without me doing anything) it proceeded to install each of the components. But it does not work and I get this error message:

    Setup could not install the following component:

    Microsoft .NET Framework v3.5 SP1

    Setup did not attempt to install the following components:

    then it lists the other 7 components, so I think it must have installed the first component.

    Can anybody help me? All I want to do is create C++ programs using visual c++ 2008 express edition, on my vista computer.
    « Last Edit: April 17, 2009, 10:33:11 AM by Computer Beginner »

    Computer Beginner

      Topic Starter


      Rookie

      Re: Cannot Install Visual C++ 2008 Express Edition on Vista
      « Reply #1 on: April 17, 2009, 10:12:25 AM »
      this is urgent =[

      patio

      • Moderator


      • Genius
      • Maud' Dib
      • Thanked: 1701
        • Yes
      • Experience: Beginner
      • OS: Windows 7
      Re: Urgent Help Needed
      « Reply #2 on: April 17, 2009, 03:24:34 PM »
      All PC issues are urgent...

      That being pointed out try DLoading the standalone .NET 3.5 framework standalone version...re-boot afterwards and retry the install of Visual.

      DISCLAIMER: There are known issues with .NET 3.5 so look for any patches/updates as well...
         
       
      " Anyone who goes to a psychiatrist should have his head examined. "

      kamz1245



        Rookie

        Re: Urgent Help Needed
        « Reply #3 on: April 18, 2009, 05:01:57 AM »
        re-boot afterwards instation

        Dias de verano

        • Guest
        Re: Cannot Install Visual C++ 2008 Express Edition on Vista
        « Reply #4 on: April 18, 2009, 05:10:31 AM »
        this is urgent =[

        That is a really bad way of getting help, because many people will now ignore you.

        patio

        • Moderator


        • Genius
        • Maud' Dib
        • Thanked: 1701
          • Yes
        • Experience: Beginner
        • OS: Windows 7
        Re: Urgent Help Needed
        « Reply #5 on: April 18, 2009, 07:08:03 AM »
        re-boot afterwards instation

        Look up... ::)
           
         
        " Anyone who goes to a psychiatrist should have his head examined. "

        Computer Beginner

          Topic Starter


          Rookie

          Re: Urgent Help Needed
          « Reply #6 on: April 19, 2009, 04:01:01 AM »
          Thank you very much for your help.

          Downloading the net framework worked! I can now run visual c++.

          I still have one problem though. When I create a new cpp source file, and try to compile it on the visual studio command prompt, using 'cl /EHsc filename.cpp', it always returns the message
          Code: [Select]
          c1xx : fatal error C1083: cannot open source file: 'filename.cpp': no such file or directory. However it definitely exists and the code is all correct.

          I tried typing
          Code: [Select]
          cd directoryoffile and it worked, but everytime I go back to the command prompt it has reset the path(is that what you call it - the bit where it says C:\Program Files\.....).

          I don't want to have to change it every time, so is there any way I can set it to always have the right directory or just make it work :S?

          Dias de verano

          • Guest
          Re: Urgent Help Needed
          « Reply #7 on: April 19, 2009, 04:03:35 AM »
          Have you tried using the full path to the .cpp file?

          Computer Beginner

            Topic Starter


            Rookie

            Re: Urgent Help Needed
            « Reply #8 on: April 19, 2009, 04:11:54 AM »
            Do you mean typing 'cd C:\Documents\Folder'?

            I have tried that typing the full directory of the the file and it works, but it resets every time to the old directory/path.

            Dias de verano

            • Guest
            Re: Urgent Help Needed
            « Reply #9 on: April 19, 2009, 04:21:05 AM »
            Do you mean typing 'cd C:\Documents\Folder'?

            I have tried that typing the full directory of the the file and it works, but it resets every time to the old directory/path.

            I mean use the full path at the visual studio command prompt e.g.

            cl /EHsc "C:\whatever\whatever\filename.cpp"

            Or create a batch file like this

            cd /d "C:\The Folder\I want to\be in"

            and save it on the desktop


            Computer Beginner

              Topic Starter


              Rookie

              Re: Urgent Help Needed
              « Reply #10 on: April 19, 2009, 04:36:12 AM »
              Trying your first option gave me the same error message.

              I tried making the batch file with exactly what you wrote in it, but it closes immediately (i'm guessing this is a noob error), so......I don't think either have worked. =S

              Dias de verano

              • Guest
              Re: Urgent Help Needed
              « Reply #11 on: April 19, 2009, 05:08:20 AM »
              Sorry, should have tried it first!

              Copy and paste this into Notepad (changing the path and folder of course!) noting the quotes and spaces and save as a batch file on the desktop

              Code: [Select]
              start "" "cmd /k cd /d C:\The Folder\Where I\Want to be"

              Computer Beginner

                Topic Starter


                Rookie

                Re: Urgent Help Needed
                « Reply #12 on: April 19, 2009, 05:15:28 AM »
                OK, thanks.

                When I open this it has my directory in it, but when I type
                Code: [Select]
                cl /EHsc file.cpp it says 'cl is not recognized as an internal or external command, operable program or batch file.'.

                =0 =0

                Dias de verano

                • Guest
                Re: Urgent Help Needed
                « Reply #13 on: April 19, 2009, 05:16:27 AM »
                 is the folder the same as this?

                Quote from: You, before
                directoryoffile

                Because you wrote

                Quote from: You, before
                I tried typing

                cd directoryoffile

                and it worked,

                So you should be in the same folder, and it should work just the same

                Computer Beginner

                  Topic Starter


                  Rookie

                  Re: Urgent Help Needed
                  « Reply #14 on: April 19, 2009, 05:24:15 AM »
                  Yes it is definitely the same folder.

                  It is weird. It just doesn't recognize the 'cl' command.