⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 cli-apt.h

📁 inside com的源代码
💻 H
字号:
#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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -