Share via


CMonikerFile::CreateBindContext

Call this function to create a default initialized bind context.

IBindCtx* CreateBindContext( 
   CFileException* pError  
);

Parameters

  • pError
    A pointer to a file exception. In the event of an error, it will be set to the cause.

Return Value

A pointer to the bind context IBindCtx to bind with if successful; otherwise NULL. If the instance was opened with an IBindHost interface, the bind context is retrieved from the IBindHost. If there is no IBindHost interface or the interface fails to return a bind context, a bind context is created. For a description of the IBindHost interface, see the Windows SDK.

Remarks

A bind context is an object that stores information about a particular moniker binding operation. You can override this function to provide a custom bind context.

Requirements

Header: afxole.h

See Also

Reference

CMonikerFile Class

Hierarchy Chart

Other Resources

CMonikerFile Members