Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Creating Shortcuts

Posted on 1998-07-15
3
Medium Priority
?
252 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 400 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

Independent Software Vendors: 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

In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
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.
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…

722 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