找回密码
 加入
搜索
查看: 2880|回复: 3

[AU3基础] [已解决]请教IVT 蓝牙中 btfunc.dll 如何调用?

[复制链接]
发表于 2011-2-8 00:01:55 | 显示全部楼层 |阅读模式
本帖最后由 zdq789 于 2011-2-9 13:59 编辑

附件该 btfunc.dll说明,看了还是不太会用,期待高手解答,谢谢!

英文站点找到一段代码,可用,但是涉及内容少
Local $dllCallError[4] = [3, "unable to use the DLL file", "Unknown return type", "Function not found in the Dll file"]

$handle = DllOpen("btfunc.dll")

$dll = DllCall($handle, "dword:cdecl", "BT_InitializeLibrary")
If @error Then
        MsgBox(0, "Error in Dll call", $dllCallError[@error])
ElseIf $dll[0] = 1 Then
        MsgBox(0, "", "BlueSoliel Initialized")
Else
        MsgBox(0, "", "BlueSoliel Failed to initialize")
EndIf

$dll = DllCall($handle, "dword:cdecl", "BT_IsBlueSoleilStarted", "long", 2);2 second timeout return if not started
If @error Then
        MsgBox(0, "Error in Dll call", $dllCallError[@error])
ElseIf $dll[0] = 1 Then
        MsgBox(0, "", "BlueSoliel is Started")
Else
        MsgBox(0, "", "BlueSoliel NOT Started")
EndIf

$dll = DllCall($handle, "dword:cdecl", "BT_GetVersion", "dword", 0)
If @error Then
        MsgBox(0, "Error in Dll call", $dllCallError[@error])
Else
        MsgBox(0, "BlueSoliel Version", $dll[0])
EndIf

DllClose($handle)
需要的函数 如  BT_InquireDevices 依然不知道如何使用!


无人帮助,自己研究很久,终于弄好了!

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?加入

×
发表于 2011-2-8 11:07:30 | 显示全部楼层
期待中!!顶一个!
 楼主| 发表于 2011-2-8 23:42:44 | 显示全部楼层
没人回答,自己顶!
发表于 2011-4-18 13:18:15 | 显示全部楼层
能不能请楼主说一下最后如何解决的,给我上一课,谢谢!
您需要登录后才可以回帖 登录 | 加入

本版积分规则

QQ|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度

GMT+8, 2024-9-21 10:50 , Processed in 0.106852 second(s), 24 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表