Microsoft MSDN wrote:Note:
File I/O functions in the Windows API convert "/" to "\" as part of converting the name to an NT-style name, except when using the "\\?\" prefix as detailed in the following sections.
J. Baker wrote:
Not sure what you are asking here?
Just read my previous post, and try what I included between the CODE tags. All should be clear then (the reason why the compilerif you wrote is wrong).
J. Baker wrote:
Not sure what you are asking here?
Just read my previous post, and try what I included between the CODE tags. All should be clear then (the reason why the compilerif you wrote is wrong).
Sorry, didn't see you had Debug there.
Interesting! It gave me a "/". I guess it is always true then like you said. Being that Windows can be "/" or "\".
Well luis, I have to thank you for the tip today. Thanks!
J., I do the exact same thing in a lot of my programs (except I keep the constant name short: #PS$ for Path Separator).
I was somewhat-aware that "/" usually works on Windows, but I still use an OS-dependent delimiter because you don't want your user to see non-native path characters! (whether in your GUI, a saved file, etc. etc.)