COM object within VBScript
Hi,
I created a COM object that runs successfully from VB. Now I would like to use it in VBScript. The two line below fail to execute in VBScript.
dim goo
set goo = CreateObject("iVGoo.goo")
What steps am I missing?
BTW, in VB, iVGooLib.goo object is created without problems.
Thanks in advance!
araik
Re: COM object within VBScript
is this running on the server side? if so, place a Server. in front of the CreateObject - like this:
dim obj
set obj = server.createobject("iVoo.Goo")
make sure it's registered properly on the server machine as well.
good luck,
John
John Pirkey
MCSD
http://www.ShallowWaterSystems.com
http://www.stlvbug.org
Re: COM object within VBScript
John,
I am not using this COM object in the web page. I am running the script from within VC++ code. The script contains the reference to the COM object. I am not sure what "server" would be in my context.
araik
Re: COM object within VBScript
better use server.createobject
that is all.
Ok
the method call ofcourse is missing(kidding...)
regards
Re: COM object within VBScript
But what happen if the DLL is running on the client PC ?
I have a pb with my DLL which i call after a user button click :
set s = createobject("project.class")
call s.method
the method does not run !
Re: COM object within VBScript
Server would be part of the object model you exposed (or didn't) to the scripting engine in your C++ program.
IIS uses Server as the name of one of its public objects. The server object supports the CreateObject method. I'm not sure what you need to do to make your app do the same.