Solved

CFileDialog and *.lnk files

Posted on 1998-06-17
2
605 Views
Last Modified: 2013-11-20
When using the CFileDialog to open executable files, by choosing *.lnk (*.pif) files the GetPathName() member function returns the full path of the executable contained in the *.lnk (*.pif) file instead of the path of the *.lnk (*.pif) file. Anybody knows how to get the full path of *.lnk (*.pif) files using CFileDialog?
0
Comment
Question by:kristof111897
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 23

Accepted Solution

by:
chensu earned 200 total points
ID: 1318084
Specify the OFN_NODEREFERENCELINKS flag when creating the dialog box.

OFN_NODEREFERENCELINKS
 Directs the dialog box to return the path and filename of the selected shortcut (.LNK) file. If this value is not given, the dialog box returns the path and filename of the file referenced by the shortcut

0
 

Author Comment

by:kristof111897
ID: 1318085
Thank you for the quick answer, it works fine!
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
notReplace  challenge 53 152
Execute multiple curl cmds with sleep and send output to file 10 119
how to split multiple lines delimiter : 8 129
x-bar in Google Sheets 2 122
Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question