using com object in vbscript

RobertG's Avatar
Newbie Member
Hi

I have created .dll with vb.net and registered it with regasm and copied it to the GAC with GACUtil. Everything worked fine. If you use gacutil /l the file is there.

Now I want to use the dll in a vbscript. the code I used is

dim testdll

set testdll = createobject("myDLL")

and I am getting the following error

ActiveX component can't create object: 'myDLL'
code 800A01AD

What am I doing wrong

Thanks

Robert
0
SaswatPadhi's Avatar, Join Date: May 2009
~ Б0ЯИ Τ0 С0δЭ ~
Your call to "CreateObject" seems wrong.

Correct syntax :: CreateObject([Namespace].[Classname], RemoteServerName)