MakeRelativePath() - Programmer

This is a discussion on MakeRelativePath() - Programmer ; VS> Current directory value can be differ in comparison to directory VS> where the application is executing. No, it cannot. *By definition*, the directory where the program is executing is the current directory. You are conflating the current directory (which ...

+ Reply to Thread
Results 1 to 2 of 2

Thread: MakeRelativePath()

  1. MakeRelativePath()

    VS> Current directory value can be differ in comparison to directory
    VS> where the application is executing.

    No, it cannot. *By definition*, the directory where the program is
    executing is the current directory. You are conflating the current
    directory (which was what M. Chalk asked about) with the path to the
    executable program image file (which wasn't what M. Chalk asked about).


  2. Re: MakeRelativePath()


    "J de Boyne Pollard" wrote in message
    news:1193053636.438958.87900@k35g2000prh.googlegro ups.com...
    > VS> Current directory value can be differ in comparison to directory
    > VS> where the application is executing.
    >
    > No, it cannot. *By definition*, the directory where the program is
    > executing is the current directory. You are conflating the current
    > directory (which was what M. Chalk asked about) with the path to the
    > executable program image file (which wasn't what M. Chalk asked about).


    Incorrect. The Current Directory CAN BE the folder where the EXE is. But the
    CreateProcess call can get specified any folder (for instance that specified
    in a shortcut) and the application can use SetCurrentDirectory (or the CRT
    wrapper chdir()) to change it at any time...

    And btw, "programs", or rather threads in processes, run in Processor(s).

    - Sten



+ Reply to Thread