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. IGlobalInterfaceTable

IGlobalInterfaceTable

Scheduled Pinned Locked Moved COM
tutorialquestion
2 Posts 1 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.
  • P Offline
    P Offline
    pepe 0
    wrote on last edited by
    #1

    Hello, I'm writing a browser helper object (BHO). It seems that I cannot do this : IGlobalInterfaceTable *g_pGIT = NULL; /* ... */ void CALLBACK TimerProc(UINT uID, UINT uMsg, DWORD dwUser, DWORD dw1, DWORD dw2) { HRESULT hr; IDOMPeek* pIDOMPeek = NULL; hr = g_pGIT->GetInterfaceFromGlobal( dwUser, IID_IDOMPeek, (void**)&pIDOMPeek); /* ... */ I get hr == 0x800401f0 Why and how should i do it ? Does I have to use ITimer, ITimerService, ... But i cannot find samples how to use that. Thanks.

    P 1 Reply Last reply
    0
    • P pepe 0

      Hello, I'm writing a browser helper object (BHO). It seems that I cannot do this : IGlobalInterfaceTable *g_pGIT = NULL; /* ... */ void CALLBACK TimerProc(UINT uID, UINT uMsg, DWORD dwUser, DWORD dw1, DWORD dw2) { HRESULT hr; IDOMPeek* pIDOMPeek = NULL; hr = g_pGIT->GetInterfaceFromGlobal( dwUser, IID_IDOMPeek, (void**)&pIDOMPeek); /* ... */ I get hr == 0x800401f0 Why and how should i do it ? Does I have to use ITimer, ITimerService, ... But i cannot find samples how to use that. Thanks.

      P Offline
      P Offline
      pepe 0
      wrote on last edited by
      #2

      Oops, i forgot to call: CoInitializeEx(0, COINIT_APARTMENTTHREADED); Next time i'll read the docs more deeply.

      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