Francois Gouget <[EMAIL PROTECTED]> wrote:
>[...]
>> In Windows you can have both forward and back slashes in a path name.
>> Mixing them in the path is absolutely no problem and works just fine.
>
>
> True, Win32 supports both forward and backward slashes. But it
>never 'produces' a forward slash in a path if it was not htere before.
> The real questions i: if there is a forward slash in the path,
>would the real GetFullPath leave it in?
> The unsuspecting application may not expect to find a forward
>slash (when parsing the string to find the basename, etc.) in the path
>returned by GetFullPath. And this is where the problem is.
Application which doesn't expect to find both types of slashes
should be considered buggy and should be fixed.
It doesn't matter, whether "the real" GetFullPathName leaves forward
slashes or not. This behaviour is "implementation specific".
All types of paths are perfectly valid in DOS and Windows:
c:\windows\system32
c:\windows/system32
c:/windows/system32
\\my_computer\windows\system32
\\my_computer\windows/system32
//my_computer\windows/system32
//my_computer/windows/system32
Dmitry.