Application.vclcomobject是作什么用的?请大家详述之

解决方案 »

  1.   

    vclcomobject是TComponent类的成员
    看了一下代码function TComponent.GetIDsOfNames(const IID: TGUID; Names: Pointer;
      NameCount, LocaleID: Integer; DispIDs: Pointer): HResult;
    begin
      if FVCLComObject = nil then
        Result := E_NOTIMPL
      else
        Result := IVCLComObject(FVCLComObject).GetIDsOfNames(IID, Names,
          NameCount, LocaleID, DispIDs);
    end;function TComponent.Invoke(DispID: Integer; const IID: TGUID; LocaleID: Integer;
      Flags: Word; var Params; VarResult, ExcepInfo, ArgErr: Pointer): HResult;
    begin
      if FVCLComObject = nil then
        Result := E_NOTIMPL
      else
        Result := IVCLComObject(FVCLComObject).Invoke(DispID, IID, LocaleID,
          Flags, Params, VarResult, ExcepInfo, ArgErr);
    end;
    你看出什么来了吗?