IAcadBaseObject是用于管理从 COM 对象到驻留数据库对象的链接的接口。COM 对象负责在销毁 COM 对象时重置从 COM 对象到COM 对象的链接。这通常在 COM 类的析构函数中完成,使用下一节中讨论的类。AcDbObjectAcAxOleLinkManager 以下是界面的描述:IAcadBaseObject interface DECLSPEC_UUID("5F3C54C0-49E1-11cf-93D5-0800099EB3B7") IAcadBaseObject : public IUnknown { // IUnknown methods // STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID FAR* ppvObj) PURE; STDMETHOD_(ULONG, AddRef)(THIS) PURE; STDMETHOD_(ULONG, Release)(THIS) PURE; // IAcadBaseObject methods // STDMETHOD(SetObjectId)(THIS_ AcDbObjectId& objId, AcDbObjectId ownerId = AcDbObjectId::kNull, TCHAR* keyName = NULL) PURE; STDMETHOD(GetObjectId)(THIS_ AcDbObjectId* objId) PURE; STDMETHOD(Clone)(THIS_ AcDbObjectId ownerId, LPUNKNOWN* pUnkClone) PURE; STDMETHOD(GetClassID)(THIS_ CLSID& clsid) PURE; STDMETHOD(NullObjectId)(THIS) PURE; STDMETHOD(OnModified)(THIS) PURE; };
|
|Archiver|CAD开发者社区 ( 苏ICP备2022047690号-1 苏公网安备32011402011833)
GMT+8, 2025-1-8 19:40
Powered by Discuz! X3.4
Copyright © 2001-2021, Tencent Cloud.