[DUG] COM object question
Conor Boyd
Conor.Boyd at trimble.co.nz
Mon May 29 14:06:01 NZST 2006
Override the Initialize method on your automation class and have your
object register with some other object when each client makes the
initial connection.
Eg. You could have another singleton class in your server, which holds a
collection of these automation objects, one for each connected client.
Override the Initialize and Destroy methods on your automation class so
that your automation objects can register and de-register with the
collection class.
HTH,
Conor
-----Original Message-----
From: delphi-bounces at ns3.123.co.nz [mailto:delphi-bounces at ns3.123.co.nz]
On Behalf Of Phil Middlemiss
How do I get hold of an instance of an automation object?
I've created an automation object class, interface, type library etc by
using the Delphi Automation Object wizard (D6). Works fine. In the unit
that implements the interface, the initialization section has got the
TAutoObjectFactory.Create call. If I create the appropriate coClass in
another app it does the right thing and starts TUMONZ and I can start
calling methods on the automation object.
But how do I get hold of that automation server object in the server
app? In the server app I want to pass it an interface to talk to when
it's methods are called.
Cheers,
Phil.
More information about the Delphi
mailing list