Solved

Creating Shortcuts

Posted on 1998-07-15
3
249 Views
Last Modified: 2013-11-20
How can I create a shortcut (.lnk file) in an MFC AppWizard program?  I need to be able to create and modify shortcut files on the fly.

I searched online help and found a function called CreateLink, but it doesn't work.
0
Comment
Question by:ardolino
[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
3 Comments
 
LVL 32

Expert Comment

by:jhance
ID: 1319253
I don't have an example handy at this moment so I'm posting this as a comment.  You create/delete/modify links using the IShellLink interface.  See it's documentation for more info.  If someone has an example handy, I'm sure that they will post it.
0
 
LVL 7

Accepted Solution

by:
galkin earned 100 total points
ID: 1319254
0
 

Author Comment

by:ardolino
ID: 1319255
Thanks.  Looks like that will work.  My only problem now is that I need to know what header files to include in order for this code to execute.  I will try to get this from the author of this code at that web site.
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

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…
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
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.
Come and listen to Percona CEO Peter Zaitsev discuss what’s new in Percona open source software, including Percona Server for MySQL (https://www.percona.com/software/mysql-database/percona-server) and MongoDB (https://www.percona.com/software/mongo-…

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