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. ATL / WTL / STL
  4. Problem with GUID

Problem with GUID

Scheduled Pinned Locked Moved ATL / WTL / STL
helpquestion
3 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.
  • G Offline
    G Offline
    Gabriel P G
    wrote on last edited by
    #1

    Hi I´m trying to create an instance of: CComQIPtr<IInputObjectSite>pInputObjectSite; but i´m getting error 2787 (No guid has been associated with this object). The guid is declared in shlguid.h, and this file is included in the project. Why it doesn´t recognize it? Thanks Gabriel Old C programmers never die. They just cast into void

    U 1 Reply Last reply
    0
    • G Gabriel P G

      Hi I´m trying to create an instance of: CComQIPtr<IInputObjectSite>pInputObjectSite; but i´m getting error 2787 (No guid has been associated with this object). The guid is declared in shlguid.h, and this file is included in the project. Why it doesn´t recognize it? Thanks Gabriel Old C programmers never die. They just cast into void

      U Offline
      U Offline
      umeca74
      wrote on last edited by
      #2

      try **IID_**IInputObjectSite as the template parameter

      G 1 Reply Last reply
      0
      • U umeca74

        try **IID_**IInputObjectSite as the template parameter

        G Offline
        G Offline
        Gabriel P G
        wrote on last edited by
        #3

        Thanks for your suggestion. It worked. I formerly posted that it didn´t work but i was really tired and i was forgetting the & before the GUID. Gabriel Old C programmers never die. They just cast into void

        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