?
Solved

CFileDialog and *.lnk files

Posted on 1998-06-17
2
Medium Priority
?
632 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 800 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

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

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

Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
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.
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

649 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