how can i use the GetObject in vb,
to get reference to EXISTING instance of com object.
( again...existing instance not new)
Printable View
how can i use the GetObject in vb,
to get reference to EXISTING instance of com object.
( again...existing instance not new)
You'll be better off with early binding. First, you would have to add a reference to the COM object you want to use, then you create an instanse of that object using New keyword.
Code:'Create an instanse of the Word application object
Dim objMyObject As New Word.Application
lets say the one app create a new instance of com object.
how can i use the GetObject to get reference to
this instance.
pls write code sample that works.
cause i try a lot combinations with GetObject,,
and i failed.
thanks and bye.