If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register or Login
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Creating a Windows shortcut in C++

Hi everyone,

I have the following problem to solve:
I have a configuration file that contains only a path (like C:/Program Files/install for instance). In this path, I have to unzip an Apache. I do not install Apache because the zip I have contains special configuration I need in my project.
With the Apache unpacked, I have 2 things to do:
1- Edit the httpd.conf file in order to contain the "unzip" path correctly
2- Create a "start Apache" shortcut.

The problem I have is exactly in the step 2. I just don't know how to create a shortcut from inside a C++. As most of you should know, this shortcut is not just an executable call. In my PC, the shortcut has the following meaningful info: