报错undeclared identifier ‘handle’ 解决方法

本文介绍了在编程中遇到'undeclared identifier 'handle''错误的常见原因及解决步骤,通过查阅相关文章(1)和(2),提供了详细的解决方案和预防措施,帮助开发者快速定位并修复问题。
你给的HIDDevice.pas编译报错太多了: [dcc32 Error] HIDDevice.pas(71): E2003 Undeclared identifier: 'HDEVINFO' [dcc32 Error] HIDDevice.pas(72): E2003 Undeclared identifier: 'TSPDeviceInterfaceData' [dcc32 Error] HIDDevice.pas(73): E2003 Undeclared identifier: 'PSPDeviceInterfaceDetailData' [dcc32 Error] HIDDevice.pas(76): E2003 Undeclared identifier: 'THIDDAttributes' [dcc32 Error] HIDDevice.pas(85): E2003 Undeclared identifier: 'HidD_GetHidGuid' [dcc32 Error] HIDDevice.pas(86): E2003 Undeclared identifier: 'SetupDiGetClassDevs' [dcc32 Error] HIDDevice.pas(86): E2003 Undeclared identifier: 'DIGCF_PRESENT' [dcc32 Error] HIDDevice.pas(86): E2003 Undeclared identifier: 'DIGCF_DEVICEINTERFACE' [dcc32 Warning] HIDDevice.pas(88): W1021 Comparison always evaluates to False [dcc32 Error] HIDDevice.pas(92): E2066 Missing operator or semicolon [dcc32 Error] HIDDevice.pas(94): E2003 Undeclared identifier: 'SetupDiEnumDeviceInterfaces' [dcc32 Error] HIDDevice.pas(99): E2003 Undeclared identifier: 'SetupDiGetDeviceInterfaceDetail' [dcc32 Error] HIDDevice.pas(100): E2008 Incompatible types [dcc32 Error] HIDDevice.pas(102): E2066 Missing operator or semicolon [dcc32 Error] HIDDevice.pas(102): E2003 Undeclared identifier: 'TSPDeviceInterfaceDetailData' [dcc32 Error] HIDDevice.pas(106): E2066 Missing operator or semicolon [dcc32 Error] HIDDevice.pas(113): E2066 Missing operator or semicolon [dcc32 Error] HIDDevice.pas(113): E2014 Statement expected, but expression of type 'Integer' found [dcc32 Error] HIDDevice.pas(114): E2003 Undeclared identifier: 'HidD_GetAttributes' [dcc32 Error] HIDDevice.pas(117): E2029 ')' expected but identifier 'VendorID' found [dcc32 Error] HIDDevice.pas(122): E2066 Missing operator or semicolon [dcc32 Error] HIDDevice.pas(123): E2066 Missing operator or semicolon [dcc32 Error] HIDDevice.pas(133): E2008 Incompatible types [dcc32 Error] HIDDevice.pas(137): E2003 Undeclared identifier: 'SetupDiDestroyDeviceInfoList' [dcc32 Error] HIDDevice.pas(183): E2033 Types of actual and formal var parameters must be identical [dcc32 Error] HIDDevice.pas(243): E2250 There is no overloaded version of 'Synchronize' that can be called with these arguments [dcc32 Fatal Error] MainForm.pas(8): F2063 Could not compile used unit 'HIDDevice.pas'
09-29
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值