I just created my first PB based COM server and tried to use it with vbScript. I assumed that the syntax should be:
Set Obj = CreateObject("EPSON_822.Projector")
Since my CLASS=EPSON_822 and my INTERFACE=Projector. However, the object fails to be created.
But when I use only the Class name without the interface name it works. ie:
Set Obj = CreateObject("EPSON_822")
I've never seen this before and I don't understand it. The following are examples of objects that I use frequently and they all require the CLASS.INTERFACE syntax.
Set GUIDGEN = CreateObject("GUIDGenerator.GUIDGEN")
Set Connection = CreateObject("ADODB.Connection")
Set Recordset = CreateObject("ADODB.Recordset")
Set fso = CreateObject("Scripting.FileSystemObject")
Set objMailSender = CreateObject("Persits.MailSender")
Can anyone tell me what I'm missing? Obviously there's a large gap in my understanding.
-Wes
Set Obj = CreateObject("EPSON_822.Projector")
Since my CLASS=EPSON_822 and my INTERFACE=Projector. However, the object fails to be created.
But when I use only the Class name without the interface name it works. ie:
Set Obj = CreateObject("EPSON_822")
I've never seen this before and I don't understand it. The following are examples of objects that I use frequently and they all require the CLASS.INTERFACE syntax.
Set GUIDGEN = CreateObject("GUIDGenerator.GUIDGEN")
Set Connection = CreateObject("ADODB.Connection")
Set Recordset = CreateObject("ADODB.Recordset")
Set fso = CreateObject("Scripting.FileSystemObject")
Set objMailSender = CreateObject("Persits.MailSender")
Can anyone tell me what I'm missing? Obviously there's a large gap in my understanding.
-Wes
Comment