|
Detailed description of the problem:
I define an interface IFoo, and then the TFoo class implements the IFoo interface. IFoo and TFoo are in two different files, and these two files are in different DLLs.
Now I have a module A that uses the services provided by TFoo through IFoo. How can module A only reference IFoo and not TFoo? (The key is to activate the interface defined by IFoo in A without Directly refer to the TFoo class, just like in the COM component, the A module can use the interface file provided by the COM component, and then the COM interface can be activated through a CLASSGUID and CreateComObject method. |
|