I hope I word this correctly... [Resolved]
Please read what I am trying to do, maybe you can offer me some guidance - all I really need is a book for reference and help:
I want MyProject.MyClass, an ActiveX EXE to load when the OS loads, like a service that runs all day.
Then in VB6APP1 I create an Object reference:
VB Code:
Set Object = Server.GetObject(MyProject.MyClass)
Lets say I change a Property:
Then VBAPP1 goes away:
Then an hour later in VB6APP2, a totally different app, wants to do the same:
VB Code:
Set Object = Server.GetObject(MyProject.MyClass)
Lets say I test the same Property:
VB Code:
intState = Object.State ' I excpect intState to be 12
Then VB6APP2 goes away:
Is such a thing possible in the realm of COM and VB6?
I 'm pretty sure this can be done with C++, but I would very much like to stay working with either VB6 or VB.NET. In other words I need to make a persistent ActiveX EXE server. or service (i think!)
Thanks for any advice!
Dave Sell
< Edit: Changed CreateObject to GetObject >