I haven't got Delphi installed and to hand. What you're looking for is a 'singleton' option - possibly when you generate the Delphi COM object in the first place. There's a wizard, right? Maybe it's there? In c++ it's a macro you have to include, so it's not in the type library. Perhaps the help has indication. I'll try to peek next time I'm on a Delphi machine.
Main Topics
Browse All Topics





by: swift99Posted on 2003-11-06 at 21:41:12ID: 9699182
a COM object is always of type "Variant" in Delphi.
variant myObject;
begin
myObject := CreateOLEObject ("classname");
myObject.property := xxx;
myProperty.someMethod (yyyy);
myObject := unassigned;
end;