|
-
Nov 3rd, 2003, 10:37 AM
#1
Thread Starter
New Member
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?
-
Nov 7th, 2003, 06:40 PM
#2
New Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|