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. C / C++ / MFC
  4. how to make program`s shortcut

how to make program`s shortcut

Scheduled Pinned Locked Moved C / C++ / MFC
comlinuxtutorialquestion
2 Posts 2 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.
  • S Offline
    S Offline
    scara
    wrote on last edited by
    #1

    HI, I have realy hard task. I need create program`s shortcut and I found on the Internet, that I must use IShellLink interface. But on Microsoft site (MSDN) I found the code - http://msdn.microsoft.com/library/...[^] - and this code doesn`t work ... function CoCreateInstance failure (I think)... piece of code: HRESULT hres; IShellLink* psl; hres = CoCreateInstance(CLSID_ShellLink, NULL, CLSCTX_INPROC_SERVER, IID_IShellLink, (LPVOID*)&psl); :confused: Tomas :confused:

    H 1 Reply Last reply
    0
    • S scara

      HI, I have realy hard task. I need create program`s shortcut and I found on the Internet, that I must use IShellLink interface. But on Microsoft site (MSDN) I found the code - http://msdn.microsoft.com/library/...[^] - and this code doesn`t work ... function CoCreateInstance failure (I think)... piece of code: HRESULT hres; IShellLink* psl; hres = CoCreateInstance(CLSID_ShellLink, NULL, CLSCTX_INPROC_SERVER, IID_IShellLink, (LPVOID*)&psl); :confused: Tomas :confused:

      H Offline
      H Offline
      HPSI
      wrote on last edited by
      #2

      Take a look at CShellLink. HPS HwndSpy - GUI developer's aid to visually locate and inspect windows. For the month of August only, use coupon code CP-81239 for 30% off.

      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