本帖最后由 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 依然不知道如何使用!
无人帮助,自己研究很久,终于弄好了! |