Clients of a plug-in framework that is implemented using ECom use the C++ interface provided by that framework, and do not need to take many special extra steps. All a client needs to do is the following:
link to the ECom framework library, ecom.lib
include the interface definition files
get a object through the interface's NewL()
function.
Usually, the client passes some data to indicate the characteristics of the
object that it requires. The client may also be able to pass some data directly
to the object.
use the object
delete the object when its use is complete
call REComSession::FinalClose()
to clean up
memory
For more information, see How to use an ECom-based plug-in framework.