Solved

Creating program groups and icons from VC++

Posted on 1999-01-05
5
153 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
Comment Utility
Edited text of question
0
 

Author Comment

by:rkerr
Comment Utility
Edited text of question
0
 
LVL 23

Accepted Solution

by:
chensu earned 70 total points
Comment Utility
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
Comment Utility
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
Comment Utility
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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

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…
C++ Properties One feature missing from standard C++ that you will find in many other Object Oriented Programming languages is something called a Property (http://www.experts-exchange.com/Programming/Languages/CPP/A_3912-Object-Properties-in-C.ht…
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 technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

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

15 Experts available now in Live!

Get 1:1 Help Now