A few C++ questions...

Discussion in 'OT Technology' started by Pudifin, Dec 12, 2003.

  1. Pudifin

    Pudifin These girls > olsen twins

    Joined:
    May 2, 2002
    Messages:
    3,252
    Likes Received:
    0
    What does it mean when a pointer has two *'s infront of it?

    Code:
    static HRESULT FooQueryInterface (IFoo *pfoo, REFIID riid, void **ppv)
    Also, what does HRESULT mean exactly? I read somewhere that it was for returning errors ?? Its in the above example.

    The example was taken from a program using COM architecture.

    Help? :x:
     
  2. frinky23

    frinky23 Bangle Sackrider

    Joined:
    Sep 10, 2002
    Messages:
    11,246
    Likes Received:
    0
    Location:
    Prestigious Cook County
    HRESULT is some sort of typedef, most likely. And two stars means double pointer - a pointer to a pointer.
     
  3. Pudifin

    Pudifin These girls > olsen twins

    Joined:
    May 2, 2002
    Messages:
    3,252
    Likes Received:
    0
    :bowdown:

    Its been a while since I've done any hardcore programming and I'm trying to get a windows media player plugin done for next week :hs:
     

Share This Page