我在开发程式遇到用USB连接设备需要驱动,请问下我如何把驱动写入到程式中;
驱动名称是'LumiUSB.sys', 设备是easyarm5749 ;用USBDEBUG调试连接上了
但不知道如何在程式中添加
status := SI_GetNumDevices(@dwNumDevices);
if status = SI_SUCCESS then
begin
status := SI_GetProductString(0,@devStr[0],SI_RETURN_SERIAL_NUMBER);
if status = SI_SUCCESS then
begin
StatusBar1.Panels[0].Text :=String(devStr)+'已连接';
end;
end;
if status <> SI_SUCCESS then
begin
bOpenDevice:=false;
RefreshBtn(true);
str:='通讯失败!';
StatusBar1.Panels[0].Text :=str;
Application.MessageBox(pchar(str),SystemTitle,MB_OK or MB_ICONWARNING);
exit;
请大哥大姐们帮帮忙 谢谢
驱动名称是'LumiUSB.sys', 设备是easyarm5749 ;用USBDEBUG调试连接上了
但不知道如何在程式中添加
status := SI_GetNumDevices(@dwNumDevices);
if status = SI_SUCCESS then
begin
status := SI_GetProductString(0,@devStr[0],SI_RETURN_SERIAL_NUMBER);
if status = SI_SUCCESS then
begin
StatusBar1.Panels[0].Text :=String(devStr)+'已连接';
end;
end;
if status <> SI_SUCCESS then
begin
bOpenDevice:=false;
RefreshBtn(true);
str:='通讯失败!';
StatusBar1.Panels[0].Text :=str;
Application.MessageBox(pchar(str),SystemTitle,MB_OK or MB_ICONWARNING);
exit;
请大哥大姐们帮帮忙 谢谢
解决方案 »
- 求Tchart 显示柱状图 实例代码?
- 路径问题
- 一个界面的问题
- 谁能解决这个问题
- 救命啊~ 那位大哥大姐帮帮忙!!!
- 本号码最后过期倒记时。。。散分啦!!!!!!!!!!!!!!!!!!!!!!!
- 99分求解:在dll中将mainmenu作为参数调用时,出现内存错误
- 我下载了一个RWXLS控件但不知道如何使用他,如何将数字,图表,导出excel
- 通过传递类来创建其实例~~Delphi代码有了~~可用BCB怎么写?~~
- 紧急救助:怎麽才能连接IBLocal数据库(密码已输入为:msterkey)!!!
- 哪位大侠会用IdFTP控件啊,IdFTP1.Get()这个函数怎么用啊?
- 父窗体,子窗体问题????
LumiUSB.sys这个是要安装的,装完了
在设备管理器里应该能看到