Page 1 of 1

Activex dll reference

Posted: Tue May 02, 2006 3:22 pm
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

Posted: Tue May 02, 2006 6:04 pm
by Osler
Is socket.dll in the windows directory and registered?

Osler

Posted: Tue May 02, 2006 7:37 pm
by PT
Hi
Yes all registered ok
Script is working outside of Housebot Just when I call from within Housebot the error appears
:? :?:

Posted: Tue May 02, 2006 7:42 pm
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

Posted: Tue May 02, 2006 11:05 pm
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

Posted: Fri May 05, 2006 2:39 pm
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