您的位置:首页 > 其它

HID开发,'DEV_BROADCAST_DEVICEINTERFACE' : undeclared identifier

2013-06-09 09:56 369 查看
在人体输入学设备开发中,有时遇到
'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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐