473,326 Members | 2,048 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

Communicating with objects running in other applications

Hi,

I am trying to create a VB6 application which can act as a 'connection
broker' for other applications being run on the same machine.

Essentially, the broker app will setup a number of connections to our
legacy system. Another system will call a Java object, which will
communicate with a COM object, which I want then to query the running
broker app to be given a specific object reference to a free
connection, which it can then use.

I may not have explained this very well, but I think there must be
some way that I can query a running application in Windows, to get a
specific object reference, which I can then use in another application
(i.e. Set newObj = objInRunningApp)

Any help or pointers to sources of information on the subject would be
much appreciated.

Thanks.

Michael.
Jul 17 '05 #1
2 2834
On 17 Dec 2003 06:55:25 -0800, mi****************@iname.com (Michael
Williams) wrote:
Hi,

I am trying to create a VB6 application which can act as a 'connection
broker' for other applications being run on the same machine.

Essentially, the broker app will setup a number of connections to our
legacy system.
Is the legacy system an AX EXE ?
Another system will call a Java object, which will
communicate with a COM object, which I want then to query the running
broker app to be given a specific object reference to a free
connection, which it can then use.
I know little about Java
- but if it can talk to a VB AX EXE then you can do what you want

I may not have explained this very well, but I think there must be
some way that I can query a running application in Windows, to get a
specific object reference, which I can then use in another application
(i.e. Set newObj = objInRunningApp)
I would be inclined to run things through the 'broker'
- however I can see that what you want is multiple threading

Any help or pointers to sources of information on the subject would be
much appreciated.


My guess is that you have an existing App that used to be a normal VB
EXE - and you have converted it to a VB AX EXE

Now you want to use a multiply threaded 'overlord' to make your legacy
App multi-threaded

If your legacy App is single instance, then regardless of what it
looks like, no more than one Thread will be attacking the shared data
at the same time.
- it will enforce its own queuing system
- I think that it does this over the 'SendMessage' 'Brain/Body'
barrier

The solution (to what I think is your problem) is to delegate lengthy
tasks to things that do not need to know about 'common data'
- and really can run in their own thread

.... not sure ...
Jul 17 '05 #2

"Michael Williams" <mi****************@iname.com> wrote in message
news:c8*************************@posting.google.co m...
Hi,

I am trying to create a VB6 application which can act as a 'connection
broker' for other applications being run on the same machine.

Essentially, the broker app will setup a number of connections to our
legacy system. Another system will call a Java object, which will
communicate with a COM object, which I want then to query the running
broker app to be given a specific object reference to a free
connection, which it can then use.


If I read that correctly, you want your new broker app to "expose"
objects, which the other program can then get a reference to. This can
be done by making your broker app an activex.exe.

The app you describe might be structured like the CoffeeMonitor sample
project in VB, with a public createable Connector class, and a public
not creatable LegacyConnection class. Instead of one CoffeeMonitor, you
would have a "pool" of several LegacyConnections, and select one to pass
back through the Connector. The other program creates a Connector, and
uses it to get a reference to a LegacyConnection.

Jul 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Evin | last post by:
How can I access values from variables (global variables) from other running applications (Java Script in IE). I need to get the value using VB.NEt is it possible. B'coz the server generates...
0
by: DD | last post by:
I am trying to place a Word document into a form. I get the following error A problem occured while Microsoft Access was Communicating with the OLE or Activex Control the name of the ole is...
4
by: Sput | last post by:
Is there a simple way of communication between applications I would need to send or receive some data from time to time?
48
by: Andrew Quine | last post by:
Hi Just read this article http://www.artima.com/intv/choices.html. Towards the end of the dicussions, when asked "Did you consider including support for the concept of immutable directly in C#...
2
by: aherzallah | last post by:
Hi every one, I am trying to create a .NET application that will be called by other smaller .NET applications, can anyone advice me what is the best method/approch to communicate between...
0
by: Nashat Wanly | last post by:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnaskdr/html/askgui06032003.asp Don't Lock Type Objects! Why Lock(typeof(ClassName)) or SyncLock GetType(ClassName) Is Bad Rico...
10
by: Gabe Moothart | last post by:
Hi, I have 3 applications (2 services and a winforms app) that need to be able to send/recieve messages from each other. What is the best way to do this in .NET? I looked briefly at remoting, but...
7
by: MariusI | last post by:
Are objects implicitly stored in the TLS of the currently running thread? When creating multithreaded applications i get errors when accessing data from a different thread than the thread used to...
2
by: Veleek | last post by:
An alternate title for this might be "Creating my own set of core classes". Just a quick overview. In order to learn C#, Sockets, Multithreading and whatever else I can, I am attempting to...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.