CObject
驱动大牛
驱动大牛
  • 注册日期2002-08-18
  • 最后登录2017-07-22
  • 粉丝0
  • 关注0
  • 积分14分
  • 威望106点
  • 贡献值0点
  • 好评度2点
  • 原创分0分
  • 专家分0分
  • 社区居民
阅读:813回复:0

我这么用有什么问题吗?

楼主#
更多 发布于:2003-04-09 18:56
想在应用程序中检测设备的插入和拔出!
怎么这么定义有问题呢!HDEVNOTIFY hNotify;
编译出错,提示信息:
c:\\test\\testdlg.h(46) : error C2146: syntax error : missing \';\' before identifier \'hNotify\'
c:\\test\\testdlg.h(46) : error C2501: \'HDEVNOTIFY\' : missing storage-class or type specifiers
c:\\test\\testdlg.h(46) : error C2501: \'hNotify\' : missing storage-class or type specifiers
testDlg.cpp
c:\\test\\testdlg.h(46) : error C2146: syntax error : missing \';\' before identifier \'hNotify\'
c:\\test\\testdlg.h(46) : error C2501: \'HDEVNOTIFY\' : missing storage-class or type specifiers
c:\\test\\testdlg.h(46) : error C2501: \'hNotify\' : missing storage-class or type specifiers


已经把Dbt.h和Winuser.h和Windows.h都包含了,可还是有上面的信息!我的环境:Win98、98DDK、VC6.0、

[编辑 -  4/9/03 by  CObject]
[img=501x116]http://www.driverdevelop.com/forum//upload/CObject/2004-01-13_2.jpg[/img]
游客

返回顶部