阅读:813回复:0
我这么用有什么问题吗?
想在应用程序中检测设备的插入和拔出!
怎么这么定义有问题呢!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] |
|
|