Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. COM
  4. IShellLink creation fails

IShellLink creation fails

Scheduled Pinned Locked Moved COM
comhelp
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    CaesarCZ
    wrote on last edited by
    #1

    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!

    T J 2 Replies Last reply
    0
    • C CaesarCZ

      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!

      T Offline
      T Offline
      Todd Smith
      wrote on last edited by
      #2

      What OS are you running on? How are you checking the return value? Todd Smith

      1 Reply Last reply
      0
      • C CaesarCZ

        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!

        J Offline
        J Offline
        Jeremy Pullicino
        wrote on last edited by
        #3

        Have you initialized COM? Jeremy. Jeremy Pullicino Professional C++ Developer Done any hacking lately?

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups