Archived

This topic is now archived and is closed to further replies.

windows shortcuts

This topic is 5813 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

hello, im having trouble making a shortcut in windows progmatically. i am trying to use the COM interfaces IShellLink and IPersistFile to save it. but the only COM ive used is DX. so i am not very good in it. i can successfully created both interfaces, and release them when im done. i use IShellLink::SetPath() to set the exe for it to point to, and IShellLink::SetIconLocation() to set the location of the shortcut. and then i use IPersistFile::Save() to save the shell link. but it doesnt seem to work. has anyone done this before, or does anyone know a way to do this without COM? i couldnt find any regular Win32 functions or MFC classes to help. by the way, i am using MFC. thanks in advance

Share this post


Link to post
Share on other sites
Hmm... Figure out the standard file-layout for a shortcut, and basicly let your program write that file

-Maarten Leeuwrik
"Some people when faced with the end of a journey simply decide to begin anew I guess."

Share this post


Link to post
Share on other sites