Windows Scripting Component and Classes

JSTKwan
01-27-2009, 09:18 AM
Wondering if anyone can help....
I've created a WSC, registered it and works, I am able to call all of my functions within my new component / object. Now, I am thinking of adding a Class module to it. The new component registered without problem. However, I don't know how to instantiate the Class object inside the new component. Does anyone know how or if this is possible? This is what I had tried and not working at all (I am doing this as a VBScript).


Dim objMyShell

Set objMyShell = CreateObject("MySuperShell")

' So, if one of my functions within my component is called COUNT, I would do
' and it works
objMyShell.Count

' So, how would I instantiate my CLASS, if it is called SIMPLECLASS, below
' fails
Dim objSimpleClass
Set objSimpleClass = New objMyShell.SimpleClass


I hope someone can help

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum