TComponent::_AddRef - C++ Builder

C++ Builder 参考手册 ➙ TComponent ➙ _AddRef


头文件:#include
命名空间:System::Classes
类:TComponent
访问权限:protected:
函数原型:

int __stdcall _AddRef(void);

System::Classes::TComponent::_AddRef 是 System::Classes::TComponent 的成员函数,调用 COM 接口的 _AddRef 增加引用计数。

参数:

返回值:
如果组件封装的是 COM 接口,会调用 COM 接口的 _AddRef 增加引用计数,返回值为当前的引用计数值;如果封装的不是 COM 接口,直接返回 -1。


参考:

  • System::Classes::TComponent::_Release
  • System::Classes::TComponent::QueryInterface
  • System::Classes::TComponent::IsImplementorOf
  • System::Classes::TComponent::ReferenceInterface
  • System::Classes::TComponent::GetTypeInfo
  • System::Classes::TComponent::GetTypeInfoCount
  • System::Classes::TComponent::GetIDsOfNames
  • System::Classes::TComponent
  • System::Classes::TPersistent
  • System::TObject
  • VCL 类继承关系

C++ Builder 参考手册 ➙ TComponent ➙ _AddRef

你可能感兴趣的:(TComponent::_AddRef - C++ Builder)