Re: Multi-select file dialog
Quote:
Originally Posted by
Dan203
...
P.S. If it matters I'm using VS2005
It would be more interesting which OS (Windows) version are you using?
Re: Multi-select file dialog
Yes, I get that too in Windows 7, but I don't know why it is like that.
Re: Multi-select file dialog
pathName.Replace("\\\\", "\\");
the problem with that is that it'll also replace the double backslash at the start of an UNC filename. So it needs to be a bit more than just that.
Re: Multi-select file dialog
In previous versions of Windows, using those double slashes with other Win32 API functions was not a problem. However, in Windows 7, using double slashes with certain functions will not work, so you will have to normalize your path somehow to get rid of those double slashes, except of course the double slash at the beginning of UNC names like OReubens mentioned.
Re: Multi-select file dialog
My machine is Win7 but I had some customers complain about this happening in XP as well.
I used...
pathName.Replace(":\\\\", ":\\");
to fix it, that way it'll only get drive paths and not UNC paths. I'm just glad to hear this is a universal problem and not something weird with my app.
Dan