Activex dll reference

General HouseBot discussion. Any issues that don't fit into any of the other topics belong here.
Post Reply
PT
Senior Member
Posts: 147
Joined: Wed Apr 13, 2005 12:32 pm
Location: Hampshire.UK

Activex dll reference

Post by PT »

Hi
I have made an activex.dll which references another dll.
The following works fine outside of housebot but returns an error which says cannot find socket dll. This is the non activex dll.

Any ideas anyone


Dim Control

Set Control = CreateObject("ippower.ippow")
Control.ipset "192.168.1.25"

rest of code here
Regards

PT

If it isn't broke,fix it till it is!
Osler
HouseBot Guru
Posts: 742
Joined: Fri Feb 03, 2006 11:18 pm

Post by Osler »

Is socket.dll in the windows directory and registered?

Osler
PT
Senior Member
Posts: 147
Joined: Wed Apr 13, 2005 12:32 pm
Location: Hampshire.UK

Post by PT »

Hi
Yes all registered ok
Script is working outside of Housebot Just when I call from within Housebot the error appears
:? :?:
Regards

PT

If it isn't broke,fix it till it is!
Osler
HouseBot Guru
Posts: 742
Joined: Fri Feb 03, 2006 11:18 pm

Post by Osler »

Add the following to your class.

Private Sub Class_Initialize()

MsgBox "My Class Initialized!!"

End Sub

Save the dll again and try calling from the script again.

Osler
Osler
HouseBot Guru
Posts: 742
Joined: Fri Feb 03, 2006 11:18 pm

Post by Osler »

Is there a copy of the socket.dll in the project folder you are working in? If so this may explain the problem when you go to call it from VBscript. Try placing a copy of the socket.dll in the win32 folder located in the windows folder and see if it works. If win32 doesn't work then try the win16 folder. If neither of these work I am at a loss.

Osler
PT
Senior Member
Posts: 147
Joined: Wed Apr 13, 2005 12:32 pm
Location: Hampshire.UK

Post by PT »

Osler

I actually remembered that when using the dll with standard Vb it worked with it being in the same folder so I just put it into actually two places and iit worked. Suppose I ought to find out which one was right
Regards

PT

If it isn't broke,fix it till it is!
Post Reply