zdq789 发表于 2011-2-8 00:01:55

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

本帖最后由 zdq789 于 2011-2-9 13:59 编辑

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

英文站点找到一段代码,可用,但是涉及内容少Local $dllCallError =

$handle = DllOpen("btfunc.dll")

$dll = DllCall($handle, "dword:cdecl", "BT_InitializeLibrary")
If @error Then
        MsgBox(0, "Error in Dll call", $dllCallError[@error])
ElseIf $dll = 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 = 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)
EndIf

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


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

masterpcc 发表于 2011-2-8 11:07:30

期待中!!顶一个!

zdq789 发表于 2011-2-8 23:42:44

没人回答,自己顶!

cbao123 发表于 2011-4-18 13:18:15

能不能请楼主说一下最后如何解决的,给我上一课,谢谢!
页: [1]
查看完整版本: [已解决]请教IVT 蓝牙中 btfunc.dll 如何调用?