HID开发,'DEV_BROADCAST_DEVICEINTERFACE' : undeclared identifier

在人体输入学设备开发中,有时遇到
'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          // MFC core and standard components
#include          // MFC extensions
#include         // MFC Automation classes
#include 		// MFC support for Internet Explorer 4 Common Controls
#ifndef _AFX_NO_AFXCMN_SUPPORT
#include 			// MFC support for Windows Common Controls
#endif // _AFX_NO_AFXCMN_SUPPORT


 

你可能感兴趣的:(VC++,基础学习)