windows shortcuts

Started by
1 comment, last by jharkey 22 years, 3 months ago
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
Advertisement
nobody else knows either, huh? i sure cant figure it out.
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."

This topic is closed to new replies.

Advertisement