I'm using MFC's CFileDialog to select a file. I'm only interested in the complete file path as my application is not going to open it directly. Though the file dialog denies selecting the file by stating: "You don't have read permission to open this file". (Which is correct -- I don't have read permission; I don't want to open the file.)
So, is there a way under Windows to get to the path by using a file dialog?
Here's my code:
CFileDialog dlg(true, nullptr, nullptr, OFN_FILEMUSTEXIST, nullptr, nullptr, 0, true);
dlg.DoModal();