mfc - Problem in getting the path of a shortcut file! -


In my application, I have an option to add files to a list..This will allow the user to select multiple files Use CFileDialog to work on the same ... and I have enabled OFN_MULTISELECT (for multiselect) ... I'm trying to add a shortcut file when facing the problem .. Here are the actual shortcuts The path is not taking, its actual path. Actually I wanted to save the shortcut file from being added to my list, but there is no ".lnk" extension in every shortcut file added (I do not know the reason). Therefore, there is no way that we can ignore the shortcut file being added.

You need the flag:

  OFN_NODEREFERENCELINKS = 0x100000; Off PS relates: This link does not ignore the link, but it ensures the link to go as it is. You will find the * .lnk extension file for the link. After that you can filter them into your code. 


Comments