IShellLink creation fails
-
Hi!, I'm far off a COM guru. I need my app to use the IShellLink interface... I have initialized both com (CoInitialize) and OLE (drag & drop works fine already). I followed the tutor I have and did it like IShellLink* sl; res = CoCreateInstance(CLSID_ShellLink, NULL, CLSCTX_INPROC_SERVER, IID_IShellLink, (void **)&sl); but this fails... Dunno why, none of the documented return values is returned (there are 3 of them). Many Thanks for much help!
-
Hi!, I'm far off a COM guru. I need my app to use the IShellLink interface... I have initialized both com (CoInitialize) and OLE (drag & drop works fine already). I followed the tutor I have and did it like IShellLink* sl; res = CoCreateInstance(CLSID_ShellLink, NULL, CLSCTX_INPROC_SERVER, IID_IShellLink, (void **)&sl); but this fails... Dunno why, none of the documented return values is returned (there are 3 of them). Many Thanks for much help!
What OS are you running on? How are you checking the return value? Todd Smith
-
Hi!, I'm far off a COM guru. I need my app to use the IShellLink interface... I have initialized both com (CoInitialize) and OLE (drag & drop works fine already). I followed the tutor I have and did it like IShellLink* sl; res = CoCreateInstance(CLSID_ShellLink, NULL, CLSCTX_INPROC_SERVER, IID_IShellLink, (void **)&sl); but this fails... Dunno why, none of the documented return values is returned (there are 3 of them). Many Thanks for much help!
Have you initialized COM? Jeremy. Jeremy Pullicino Professional C++ Developer Done any hacking lately?