HID开发,'DEV_BROADCAST_DEVICEINTERFACE' : undeclared identifier

来源:互联网 发布:倩女幽魂手游网络错误 编辑:程序博客网 时间:2024/05/22 00:46
在人体输入学设备开发中,有时遇到
'DEV_BROADCAST_DEVICEINTERFACE' : undeclared identifier


的错误,

需要在stdafx.h中,添加

#define WINVER 0x0501


例如:

#if _MSC_VER > 1000#pragma once#endif // _MSC_VER > 1000#define VC_EXTRALEAN// Exclude rarely-used stuff from Windows headers#define WINVER 0x0501#include <afxwin.h>         // MFC core and standard components#include <afxext.h>         // MFC extensions#include <afxdisp.h>        // MFC Automation classes#include <afxdtctl.h>// MFC support for Internet Explorer 4 Common Controls#ifndef _AFX_NO_AFXCMN_SUPPORT#include <afxcmn.h>// MFC support for Windows Common Controls#endif // _AFX_NO_AFXCMN_SUPPORT


 

原创粉丝点击