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 4776 times)

0 Members and 2 Guests are viewing this topic.

Dias de verano

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

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

Let's start at the beginning. How were you doing this before?

Quote from: You
When I create a new cpp source file, and try to compile it on the visual studio command prompt, using 'cl /EHsc filename.cpp',

How did you get to the "visual studio command prompt"?


Computer Beginner

    Topic Starter


    Rookie

    Re: Urgent Help Needed
    « Reply #16 on: April 19, 2009, 06:01:29 AM »
    I open up the visual C++ express edition 2008

    File>open>file.cpp

    tools>visual studio command prompt

    Dias de verano

    • Guest
    Re: Urgent Help Needed
    « Reply #17 on: April 19, 2009, 06:05:52 AM »

    Computer Beginner

      Topic Starter


      Rookie

      Re: Urgent Help Needed
      « Reply #18 on: April 19, 2009, 06:27:28 AM »
      It says this:

      Quote
      You might think that accessing the command line is a simple matter of clicking the Start\Programs\Accessories\Command Prompt shortcut. That shortcut opens a command prompt, but it's not the right one. This command prompt lacks the required environment variables, especially the path information to Visual Studio.

      so that must mean that the batch file created on my desktop won't work. I can get to the visual studio command prompt and make it work by typing cd /directory and then compiling, it is just a matter of setting it so it always has the right directory =s.



      Dias de verano

      • Guest
      Re: Urgent Help Needed
      « Reply #19 on: April 19, 2009, 06:33:18 AM »
      There ya go. I didn't know that either...


      Computer Beginner

        Topic Starter


        Rookie

        Re: Urgent Help Needed
        « Reply #20 on: April 19, 2009, 08:24:15 AM »
        I still don't know how to set the command prompt to the correct directory. =S

        Thanks for your help though!

        Dias de verano

        • Guest
        Re: Urgent Help Needed
        « Reply #21 on: April 19, 2009, 08:44:12 AM »
        So are you always going to keep your cpp files in the same directory? Surely you are going to create a different directory for each new project?

        Computer Beginner

          Topic Starter


          Rookie

          Re: Urgent Help Needed
          « Reply #22 on: April 19, 2009, 08:51:32 AM »
          Well I guess I probably will.

          In that case...it's fine! It isn't much of a problem typing one line anyway.

          Thanks for all your help!