Results 1 to 3 of 3

Thread: GetObject to get an existing instance of com object

  1. #1

    Thread Starter
    Member
    Join Date
    Apr 2000
    Posts
    42
    how can i use the GetObject in vb,
    to get reference to EXISTING instance of com object.

    ( again...existing instance not new)

  2. #2
    Serge's Avatar
    Join Date
    Feb 1999
    Location
    Scottsdale, Arizona, USA
    Posts
    2,744
    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

  3. #3

    Thread Starter
    Member
    Join Date
    Apr 2000
    Posts
    42

    using GetObject to already creatED INSTANCE

    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width