Hi everybody,

I've got a very big problem with a VBScript. I've got a ActiveX DLL
compiled with Visual Basic 6.0. In that DLL I've got a Pulic Collection with
elements within, but when I do a reference to the objects in the collection,
the script returns an incredible error:

Error: Unknown runtime error: 'Cod_Collection.Item'
Code: 800A0062
Source: Microsoft VBScirpt runtime error

I've been debugging the DLL and it works fine. When I do a msgbox
Cod_Collection.Count, it returns ok the value. I need help!!!! Please!!!

Thanks,

Eider.

Re: I need help!!!! by mayayana

mayayana
Wed Apr 06 08:32:03 CDT 2005

It might help if you post some of the code (here or
in a VB group) since there's no way to know how
you're letting the script call the DLL.
It also probably
isn't a good idea to have a public collection. The
DLL public class should be providing foolproof
properties and methods through it's interface,
with any work done internally. You could have
a specialized collection class available through that
interface, but if you make a collection public then
you're just adding complexity: If it's just a plain collection
that's public then what would be the point of calling the
DLL to use it? The script can just make its own
collection!

--
_____________________________

mayayXXana1a@mindYYspring.com
For return email remove XX and YY.
_____________________________
Eider <eah@cyc.es> wrote in message
news:u9X4HJoOFHA.3076@TK2MSFTNGP12.phx.gbl...
> Hi everybody,
>
> I've got a very big problem with a VBScript. I've got a ActiveX DLL
> compiled with Visual Basic 6.0. In that DLL I've got a Pulic Collection
with
> elements within, but when I do a reference to the objects in the
collection,
> the script returns an incredible error:
>
> Error: Unknown runtime error: 'Cod_Collection.Item'
> Code: 800A0062
> Source: Microsoft VBScirpt runtime error
>
> I've been debugging the DLL and it works fine. When I do a msgbox
> Cod_Collection.Count, it returns ok the value. I need help!!!! Please!!!
>
> Thanks,
>
> Eider.
>
>