HBControlMod.DLL Weirdness
Posted: Tue Dec 30, 2003 7:32 am
OK I'm losing my mind...
I'm trying to get this very simple VB code to work which worked before but now it fails. Strangely though, the ASP templates work fine so the control is obviously registered. I double checked the reference in VB as well.. HBControl.exe works fine too.
Any ideas??
Results from code above:
szRsp: Unable to connect to HouseBot computer. Port = 1234, IP = 127.0.0.1, Error = Either the application has not called WSAStartup, or WSAStartup failed.
szVal: **Error**
I'm trying to get this very simple VB code to work which worked before but now it fails. Strangely though, the ASP templates work fine so the control is obviously registered. I double checked the reference in VB as well.. HBControl.exe works fine too.
Any ideas??
Code: Select all
Option Explicit
Dim Obj As HBControl
Dim szRsp As String
Dim szVal As String
Private Sub Form_Load()
Set Obj = CreateObject("HBControlMod.HBControl")
End Sub
Private Sub Command1_Click()
szRsp = Obj.Connect(1234, "127.0.0.1", "pwd")
szVal = Obj.GetDeviceList("|")
Text1.Text = "szRsp: " + szRsp + vbCrLf + "szVal: " + szVal
End Sub
Private Sub Form_Unload(Cancel As Integer)
Set Obj = Nothing
End Sub
Results from code above:
szRsp: Unable to connect to HouseBot computer. Port = 1234, IP = 127.0.0.1, Error = Either the application has not called WSAStartup, or WSAStartup failed.
szVal: **Error**