Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8996573
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T23:46:20+00:00 2026-06-15T23:46:20+00:00

Either I don’t understand COM objects, either it’s all that confusing. I frequently ‘create’

  • 0

Either I don’t understand COM objects, either it’s all that confusing.
I frequently ‘create’ , ‘dispatch’ COM objects – either in Python, either in VB ( Obj = win32com.client.Dispatch('Visum.Visum') or Obj = CreateObject("Excel.Application") respectively).
That’s easy, obvious and everything’s fine.
But how can I:
a) connect to COM object which is already running
b) get list of running processes which are COM objects

  • in VB what is the reference, and additional info on: CreateObject command. In Python it’s part of well defined, comprehensive library of win32com whereas in VB it’s just single method without reference: http://msdn.microsoft.com/en-us/library/7t9k08y5(v=vs.80).aspx

Highly confusing (COM object,server? connection, dispatching, registering??)

Thanks for claryfying
Rafal
i2

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T23:46:21+00:00Added an answer on June 15, 2026 at 11:46 pm

    First of all, I would suggest reading a good introduction to COM. Personally, i think that ‘Essential COM’ by Don Box is the best book about COM. Spending a few hours with it will save you many hours later.

    That being said, let’s move to your questions.

    a) In order to retrieve an existing COM object from VB, you need to call GetObject function. This will only work for COM objects which are registered with Running Object Table. Excel does this, so there shouldn’t be any problems with that.

    b) as Hans Passant correctly noted, this question doesn’t make sense. Processes and COM objects are completely unrelated things, except for the fact that processes host the COM objects. It is similar to asking ‘which processes are instances of class X’. However, a process can host a COM object (or many of them). These object can be alive only temporarily, so what would you expect there? Besides, many COM classes are implemented within dlls, but created instances obviously are hosted within a process – so what would you expect there?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Either I don't understand the Instruments Leaks tool at all, or I am going
I have certain page-specific js and css files that I either: Don't want running
This is giving me headaches, AGAIN. I either don't understand this ajax response stuff
I've poked around on stackoverflow for a while, but either I don't understand templates
I've looked at several other SGen-related questions on here and either their answers don't
I don't know either my implementation have bugs or StringBuilder is going wrong. From
I don't know anything about either library but I have to choose one of
I don't see the point of using either http://960.gs or http://blueprintcss.org if they enforce
I'm either a bit overwhelmed by the complexity of NSDate or I simply don't
I need to develop applications for Linux but I don't want to either program

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.