QueryInterface可返回一个指向接口的指针
如何利用返回指针,知道成员函数,及如何调用这些成员函数?最好有个例大,请大牛指点迷律.

解决方案 »

  1.   

    delphi 如何调用指向这个接口指针的成员函数?成员函数类型需要自己申明吗?
      

  2.   

    Returns a reference to a specified interface if the object supports that interface.Delphi syntax:type HResult = Longint;
    function QueryInterface(const IID: TGUID; out Obj): HResult; stdcall;DescriptionQueryInterface checks whether the object that implements this interface supports the interface specified by IID. If so, QueryInterfaceincrements the reference count.
    sets the Obj parameter so that it points to an instance of the specified interface.
    returns 0 to indicate success.If the object does not support the interface, QueryInterface returns a nonzero error code such as E_NoInterface.-------------------------------------------------------
    帮助都有