
need help with CreateObject
Are you trying to create this object in a web enviroment, a client/server
enviroment, or server enviroment only?
The fully qualified name would be the name of the DLL (not including
extension) and the name of the class, e.g. "MyDllname.clsMultiDropServer".
If you are in a VB client/server environment, you do not need to use the
Scripting object to use CreateObject, as it is a regular method of VB.
If you are trying to create this object in a client, and the object exists
on a remote (server) machine, you will need to register the component's type
library on the client machine and check it's DCOM properties with
dcomcnfig.exe, a utility that allows you to specify the remote location of
the actual component.
HTH,
Brian A. Manlove
Magenic Technologies Int'l.
Quote:
> (warning: new to this, so I may have incorrect terminology)
> Hello-
> I have a VB COM component (server) that I want to create an instance of in
> VB- using code, not including it as a "reference". So, I'm trying to to
use
> VBScript CreateObject to do so- is this possible?
> So, I have something like this:
> With ScriptControl1
> Dim MyObject As Object
> AllowUI = True
> Set MyObject = CreateObject("clsMultiDropServer")
> IsObject (MyObject)
> End With
> It doesn't work. Anyone have any tips for what I am doing wrong? I'm not
> even sure I'm going about it in the correct way.
> Thanks, Al