Solved

CFileDialog and *.lnk files

Posted on 1998-06-17
2
598 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Adapt this command to show who installed 29 112
How to determine file rename from EventLog ? 2 57
fizzArray2 challenge 1 102
moto 4g phone enable finger print 4 44
Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
In this post we will learn different types of Android Layout and some basics of an Android App.
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.
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

740 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