Global Object used by diff. applications
Hello!
I'm relatively new to visual basic 6 (coming from the Java World) and have a question: is it possible to create a kind of global object (which stays in the memory) wich can be used by more than one application at the same time? A kind of VB-Enterprise Java Bean?
The problem is: i have application a, b and c. Application A adds things to lets say an array. Application B also adds stuff to the same array. Application C takes all the stored things of this array and processes the data somehow (e.g. stores the complete array into a database).
Can this be done with vb6 (I'm quite sure it can be done) and if, how?
Thank you in advance, I appreciate any help!!
Regards,
max
Re: Global Object used by diff. applications
If all of these applications are running on the same machine then you can create an ActiveX EXE and use GetObject() to retain a reference to an existing object of this application.
Re: Global Object used by diff. applications
Thank you very much! I ran across an "out-of-process-server" couple of minutes ago and I think it's the same concept you mentioned. But the book I have says that passing parameters to an activeX .exe takes is time-intensive. That's a problem due to my applications are very time-critical. Can you think of any faster way?
But thank you anyway!
Re: Global Object used by diff. applications
You can use an ActiveX EXE to do this and it won't be as slow as you think. Search my name and Singleton for some nice examples.
P.S. Any solution you use will be out-of process by the very definition of what you are asking for.