A simple question about CComPtr RRS feed

  • Question

  • Following is the snippet, my question is from the last line of assignment. Is AddRef called from that line? I didnt see the operator= override, so do I need to call AddRef manually.

    CComPtr <IDirect3DDeviceManager9> pManager;

    //...pManager initialization

    LPVOID *ppvObject;

    *ppvObject = pManager;

    color your life
    Friday, July 17, 2009 8:27 AM