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

📄 idog2.h

📁 VC++串口通信设。本书详细说明讲解了在VC++环境下编写串口通信得过程。值得一看
💻 H
字号:
// Forward declaration
typedef struct IDog IDog;

// Vtable structure
typedef struct
{
   // IUnknown methods
   HRESULT (*QueryInterface )(IDog   *this,
                              REFIID riid,
                              void   **ppvObject);
   ULONG   (*AddRef )(IDog *this);
   ULONG   (*Release )(IDog *this);

   // IDog methods
   HRESULT (*Bark)(void);
   HRESULT (*Scratch)(void);
   HRESULT (*Sleep)(void);
   HRESULT (*Eat)(void);
   BOOL    (*IsHungry)(void);

} IDogVtable;

// The actual IDog interface structure
typedef struct
{
   struct IDogVtable *lpVtable;
} IDog;

⌨️ 快捷键说明

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