Click here to Skip to main content
15,890,186 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have a c++ application that creates shortcut in desktop and start menu.When the user right clicks on the shortcut it will create the corresponding context-menus.I am completely new to shell programming so can anybody help me regarding how to use shell functions to determine the location of application in the disk (like C:/blah/blah/Startmenu or C:/blah/blah/Desktop).

What I have tried:

I have read articles about using SHBrowseForFolder and SHGetPathFromIDList for this approach. But could not find any leads.
Posted
Comments
Richard MacCutchan 11-Jun-16 12:03pm    
The location is stored in the shortcut.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900