Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
template<typename I>
P6R::P6ERR P6R::p6ComPtrBase< I >::createInstance ( P6R::p6ICom pOuter,
const P6R::P6CID cid,
const P6R::P6IID riid 
)
inline

Create a new component instance and assign the result to this smart pointer.

Any previous interface in the smart pointer will be released.

Parameters
pOuter[ in ] A pointer to the aggregate objects p6ICom interface. If NULL, then object is not being created as part of an aggregate.
cid[ in ] The component ID associated with of code to be used to create the instance.
riid[ in ] A reference to the interface ID that indicates the interface to be returned.
Returns

Definition at line 182 of file p6comptr.h.