Using HIDController on Delphi 2010

前端 未结 3 1326
别那么骄傲
别那么骄傲 2020-12-21 14:07

I have an application that uses HID Controller on delphi 7 but now I need to use it on Delphi 2010(license problems) but I\'ve found some compatibility problems of this HIDC

3条回答
  •  盖世英雄少女心
    2020-12-21 14:23

    Apparently the "device can not be opened" problem (Natalia) has also to do with unicode characters. The new version of HIDController pointed to in answer 1 does not solve this problem.

    Solution: Change the type of the last parameter of TJvHIDPnPInfo.Create (unit JvHIDController.pas) in "PAnsiChar" in stead of "PChar". Do not forget to change also the typecast where the routine is "called".

    p.s. the links to "Modified source file" and "zipped version" in answer 1 are dead.

提交回复
热议问题