OWLNext 7.0
Borland's Object Windows Library for the modern age
|
Linking & embeding version of the Registrar. More...
#include <ocf/ocapp.h>
Protected Member Functions | |
void * | GetFactory (const GUID &clsid, const GUID &iid) |
Override TRegistrar's GetFactory to provide additional factory support using BOle factories. | |
bool | CanUnload () |
void | LoadBOle () |
Dynamically load the OcOle Dll, get the one entry point that we need & make the class manager object that we use. | |
Protected Member Functions inherited from ocf::TRegistrar | |
TRegistrar (TAppDescriptor &appDesc) | |
Friends | |
class _ICLASS | TOcApp |
Additional Inherited Members | |
Static Public Member Functions inherited from ocf::TRegistrar | |
static TRegistrar * | GetNext (TRegistrar *reg) |
Protected Attributes inherited from ocf::TRegistrar | |
TAppDescriptor & | AppDesc |
ocf::TOcRegistrar::TOcRegistrar | ( | owl::TRegList & | regInfo, |
TComponentFactory | callback, | ||
owl::uint32 | preselectedOptions, | ||
owl::tstring & | cmdLine, | ||
owl::TRegLink * | linkHead = 0, | ||
owl::TModule * | module = & owl::GetGlobalModule() ) |
The 'preselectedOptions' parameter enables to preserve old (pre 6.40) behaviour (see Bug #376): Set to amQuietReg, no exception is thrown on registration failures which nowadays occur frequently due to restricted user rights during registration updates.
This option should only be set when cmdLine is empty, otherwise wanted exceptions on registration failures will be suppressed too. The amNoRegValidate bit may be set to suppress the automatic registration update at all.
Definition at line 854 of file ocapp.cpp.
References ocf::TRegistrar::GetOptions(), and ocf::TOcClassMgr.
|
protectedvirtual |
Reimplemented from ocf::TRegistrar.
Definition at line 953 of file ocapp.cpp.
References ocf::TRegistrar::CanUnload(), and TRACEX.
IBClassMgr * ocf::TOcRegistrar::CreateBOleClassMgr | ( | ) |
Definition at line 886 of file ocapp.cpp.
References BOLEBIND, LoadBOle(), ocf::TXObjComp::Throw(), and ocf::TXObjComp::xBOleBindFail.
|
inline |
|
inline |
Override TRegistrar's GetFactory to provide additional factory support using BOle factories.
Reimplemented from ocf::TRegistrar.
Definition at line 915 of file ocapp.cpp.
References ocf::amDebug, ocf::cidBOleFactory, ocf::IBClassMgr::ComponentCreate(), CreateBOleClassMgr(), ocf::TRegistrar::GetAppDescriptor(), ocf::TRegistrar::GetFactory(), ocf::TAppDescriptor::GetRegLink(), ocf::HRSucceeded(), ocf::TRegistrar::IsOptionSet(), and OleStr.
|
protected |
Dynamically load the OcOle Dll, get the one entry point that we need & make the class manager object that we use.
Definition at line 1005 of file ocapp.cpp.
References _A2W, _USES_CONVERSION, _W2A, BOLE_FILEVER_LS, BOLE_FILEVER_MS, BOLEDLL, BOLEDLLW, ocf::TXObjComp::Throw(), owl::ToBool(), ocf::TXObjComp::xBOleLoadFail, and ocf::TXObjComp::xBOleVersFail.