cli-apt.h

来自「COM技术内幕源码 ,随书原码」· C头文件 代码 · 共 35 行

H
35
字号
#ifndef __CClientApartment_h__#define __CClientApartment_h__/////////////////////////////////////////////////////////////// CClientApartment//   - A simple C++ class that encapsulates creating a//     component on a thread.//     It creates the component using CoCreateInstance.//class CClientApartment : public CSimpleApartment{public:	// Constructor	CClientApartment() ;	// Destructor	virtual ~CClientApartment() ;	// Create and start the thread.	virtual HRESULT CreateComponentOnThread(const CLSID& clsid,                                                const IID& iid,                                                IUnknown** ppI) ;	// Function for doing background processing	virtual void WorkerFunction() ;protected:	IX* m_pIX ;} ;#endif __CClientApartment_h__

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?