what's wrong? I want use mushclient.tlb IN VB...please help me.

Posted by Applehoo on Wed 21 Sep 2011 01:31 AM — 4 posts, 17,567 views.

China #0
i have already added the mushclient.tlb file to the "References" menu item.


Private Sub Command1_Click()

Dim world As world
Dim otherworld As world


 Set world = CreateObject(" MUSHclient.world")

Rem ----cannot creat object ???what's wrong ??

  Set otherworld = world.GetWorld("world")

  otherworld.Note "Hi there"

  Set world = Nothing
  Set otherworld = Nothing
End Sub
Amended on Wed 21 Sep 2011 01:33 AM by Applehoo
Australia Forum Administrator #1
You have a space before MUSHclient in the CreateObject call.
China #2
Removing spaces does not work.

Real-time error 429,Activex component can not create object.


Oh.....:(
Australia Forum Administrator #3
This might be relevant:

Template:post=7444
Please see the forum thread: http://gammon.com.au/forum/?id=7444.


It possibly cannot be done. It wasn't designed to be instantiated from another script.