Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: DCOM single instance (singleton) object


This question is not answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 0
Alex Z

Posts: 1
Registered: 9/22/14
DCOM single instance (singleton) object  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Sep 8, 2014 4:13 AM
Hello!

I have a problem migrating from RAD Studio 2010 to RAD Studio XE3.

I am writing DCOM server which can get special PCI devices and manage it. So I want have one 'manager.exe' for all devices.
Com clients should connect to that server and do their jobs.

How I see HELP ATL is not supporting now. Now it says use Delphi ActiveX Framework (DAX).
But I cant find example or manual how to do server with only ONE object in DAX.
In ATL it was easy: I just added
DECLARE_CLASSFACTORY_SINGLETON(<MyClass>);
and it worked.

So what is magic approach or magic code in Delphi Active X for creation SINGLETON object?
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02