vcr.h

来自「COM+ Programming: A Practical Guide Usin」· C头文件 代码 · 共 35 行

H
35
字号
// File vcr.h

#include "Video.h"
#include "../ComponentVcr/ComponentVideo.h"

class CVcr : public IVideo, public ISVideo, IComponentVideo
{
public:
	CVcr(void);
	HRESULT Init();
	~CVcr();

	// IUnknown interface
	STDMETHOD(QueryInterface)(REFIID iid, void** pp);
	STDMETHOD_(ULONG, AddRef)();
	STDMETHOD_(ULONG, Release)();

	// IVideo interface
	STDMETHOD(GetSignalValue)(long* plVal);

	// ISVideo interface
	STDMETHOD(GetSVideoSignalValue)(long* plVal);

	// IComponentVideo interface
	STDMETHOD(GetCVideoSignalValue)(long* plVal);

private:
	long m_lCurValue;
	int m_nCurCount;
	long m_lRefCount;
	IComponentVideo* m_pComponentVideo;
};


⌨️ 快捷键说明

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