Solved

CFileDialog and *.lnk files

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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
How to know only "File created" with EventLog 3 29
dog bark java program 15 82
sum67 challenge 35 89
Problem to event 3 52
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: 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.
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

743 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now