Results 1 to 2 of 2

Thread: How to monitor another app's COM object

  1. #1

    Thread Starter
    New Member
    Join Date
    May 2003
    Location
    Metrowest Boston
    Posts
    11

    Question How to monitor another app's COM object

    I have a VB6 COM object that I created that holds a queue of requests (queues.cls) (mostly printing requests). It does this by saving a collection of queue objects (queue.cls). Regardless of what information is saved my question is this.

    I have application #1 (ABC.exe) that is an ActiveX EXE that creates my queue COM object and adds/deletes information from the queues.

    Can I have application #2 (XYZ.exe) query the same queue COM object and monitor what is in the queue that application ABC has established. Application #2 is simply going to monitor what is in the queue, hopefully from an ASP page.

    Any thoughts out there?

  2. #2
    New Member
    Join Date
    Nov 2003
    Posts
    5
    I think what you need is one of two things...

    1. An ActiveX EXE that contains a GlobalSingleUse class keeping track of the queue itself(monitor.cls) and a MultiUse class representing the queue (queue.cls). When the EXE starts create the monitor class and keep a reference to it on a global variable. Now you can get the queue stats through any queue and from other no queue creating proggies.

    2. Create a class that adds itself to the ROT table so that other proggies can do GetObject. This needs API calls.

    Your problem is similar to mine...

    http://www.vbforums.com/showthread.p...hreadid=267176

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