怎麼將這一段程式由vb轉成bcb |
尚未結案
|
logi
一般會員 發表:4 回覆:4 積分:1 註冊:2002-10-26 發送簡訊給我 |
Dim o As Object
Dim txt As String
Set o = CreateObject("LeCroy.ActiveDSOCtrl.1")
Dim deviceAddress As String
deviceAddress = "IP: 169.254.248.227"
Dim success As Boolean
success = o.MakeConnection(deviceAddress)
If (success = False) Then
MsgBox "DSO not found ! Address may be wrong ..."
GoTo 999
End If
Call o.SetRemoteLocal(1)
Call o.WriteString("buzz beep;*idn?", 1)
txt = o.ReadString(500)
' check accumulated error status
If (o.ErrorFlag = True) Then
MsgBox o.ErrorString
End If
' release the control
999 Set o = Nothing
|
本站聲明 |
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。 2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。 3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇! |