📄 fortune2.h
字号:
#ifndef FORTUNE_H
#define FORTUNE_H
// Get needed include files
#include "IFortune.h"
// New class declaration
class ComFortuneTeller : public IFortuneTeller
{
public:
// Constructor
ComFortuneTeller();
// IUnknown
STDMETHODIMP QueryInterface(REFIID, PPVOID);
STDMETHODIMP_(ULONG) AddRef();
STDMETHODIMP_(ULONG) Release();
// IFortuneTeller
STDMETHOD(GetFortune)(/*[out,retval]*/BSTR*);
protected:
// Reference count
ULONG m_cRef;
};
typedef ComFortuneTeller* PComFortuneTeller;
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -