[RESOLVED] Object Required - VBScript
Hi all,
I am constructing an html document with vbscript contained within it.
Using this code, I use late binding to call a COM library reference (from a dll).
VB Code:
Dim obj1
set obj1 = CreateObject("HServe.Classname")
This appears to be created ok with no errors (If I mis-spell the "HServe.Classname" part above , I get a "ActiveX cannot create this object" message)
However, when I attempt to use this object, for example:
I get the message "Object Required: 'obj1' " in the Internet Browser error reporting.
Does anyone have any ideas what maybe causing my problem?
The author of the dll notes that it is an automation server dll. I have successfully used regsvr32 to register the dll.
I should also note that the above code does not have any problems when I declare the object as
VB Code:
Dim obj1 As HServe.Classname
in VB 6.0
Re: Object Required - VBScript
It turns out that the author of the .dll didn't code it to allow late binding. I got around this by making my own dll which would use early binding to initialise the library.
A bit of an inconvieniance, but it seems to work.