Quantcast
Channel: Visual C forum
Viewing all articles
Browse latest Browse all 15302

Problem with Shortcut selection in CFileDialog with multiselect on!

$
0
0

Hi,

I am using the CFileDialog to select multiple files but when the shortcut is selected, the file paths that I get for the other files are wrong. e.g. say In a directory C:/Desktop I selected two files - abc.txt and a shortcut my.lnk pointing to C:/Programs/my.exe. The paths that I get are C:/Programs/my.exe and C:/Programs/abc.txt. That is, I get a wrong path for the  abc.txt also, which is wrong. Is there any way to get around this?

I am using GetStartPosition() and GetNextPathName() to get the file names.


Viewing all articles
Browse latest Browse all 15302

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>