Solved

Creating program groups and icons from VC++

Posted on 1999-01-05
5
156 Views
Last Modified: 2010-04-16
I'm working on an uninstall program for Windows NT 4.0 that can roll back to previous versions with all of the saved settings restored.  Everything works correctly except for one thing and that is creating program groups and icons.  I am looking for either a class that encapsulates this functionality, or a good WORKING example of how to do this.  All of the examples I've found are in either VB, Pascal, or don't work!  I do know that you can either use DDE (which I'm not sure how to use) or create the directories then use IShellLink to create the icons.  I can't get either of these methods to work.

Thank you!

PS:  I'm using Visual C++ 5.0
0
Comment
Question by:rkerr
  • 4
5 Comments
 

Author Comment

by:rkerr
ID: 1181595
Edited text of question
0
 

Author Comment

by:rkerr
ID: 1181596
Edited text of question
0
 
LVL 23

Accepted Solution

by:
chensu earned 70 total points
ID: 1181597
http://www.codeguru.com/shell/filelinks.shtml

Use the SHGetSpecialFolderPath function with the CSIDL_STARTMENU flag to get the Start Menu path.
0
 

Author Comment

by:rkerr
ID: 1181598
Hey, I really appreciate the answer!  I looked on the CodeGuru page in the past and couldn't find the answer there, guess I didn't dig deep enough! :)
0
 

Author Comment

by:rkerr
ID: 1181599
Hey, I really appreciate the answer!  I looked on the CodeGuru page in the past and couldn't find the answer there, guess I didn't dig deep enough! :)
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

Errors will happen. It is a fact of life for the programmer. How and when errors are detected have a great impact on quality and cost of a product. It is better to detect errors at compile time, when possible and practical. Errors that make their wa…
Often, when implementing a feature, you won't know how certain events should be handled at the point where they occur and you'd rather defer to the user of your function or class. For example, a XML parser will extract a tag from the source code, wh…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

730 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