I have a stand alone program written in Delphi to which I have added a COM interface. How can my program tell whether it was invoked through COM or from the command line?
In the unit that implements the interface there is this code:
initialization
TAutoObjectFactory.Create(ComServer, TMyInterface, Class_MyInterface,
ciSingleInstance, tmSingle);
I thought maybe the ComServer parameter here would be the main form ComServer property but I can't figure out how to use it or even if that is true.
CodePudding user response:
CodePudding user response:
I also received this information from tech support. "Check the command line when the program starts." I did this and found the -Embedding switch.