[已解决]请教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 依然不知道如何使用!
无人帮助,自己研究很久,终于弄好了! 期待中!!顶一个! 没人回答,自己顶! 能不能请楼主说一下最后如何解决的,给我上一课,谢谢!
页:
[1]