Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
virtual P6R::P6ERR P6R::p6IModule::initialize ( const P6DLLAPI *  pDllApi,
const P6WCHAR pwszFilename 
)
pure virtual

This method initializes the module for use and must be called prior to calling any other method (with the exception of the enumComponents() method which may be called prior to initialize()).

Parameters
pwszFilename[ in ] The file/pathname of the module. It is not possible for the module to determine is name and location on all platforms, so the loader/caller passes this information to the module.
Returns
SuccessP6R::eOk 
FailureP6R::eInvalidArgpszFilename is NULL or zero length.
P6R::eAlreadyInitializedInitialize has already been called.
P6R::eDllNotFoundThe module was not able to locate the COM runtime module.
P6R::eDllErrorThe module found the COM runtime, but is unable to locate a needed function.