All Frameworks Class Hierarchy This Framework Indexes
Usage: an implementation of this interface is supplied and you must use it as is. You should not reimplement it.
interface DNBIMHIOpenAccess
Interface representing a means to load data from the Hub into V5.
DNBIMHIOpenAccess is implemented on CATSession. Applications and CAA partners should NOT implement this interface.
CATSession * pSession = CATSession::GetPtrSession();
if (pSession)
{
DNBIMHIOpenAccess * pOpenAccess = NULL;
HRESULT RC = pSession->QueryInterface(IID_DNBIMHIOpenAccess,
(void**) &pOpenAccess);
if (SUCCEEDED(RC) && NULL != pOpenAccess)
{
CATUnicodeString uLogin = "admin";
CATUnicodeString uPassword = "admin";
RC = pOpenAccess->ConnectToPPRHub( uLogin, uPassword );
// Call method CreateLoadParameters()
// Call methods on DNBIMHILoadParameters to populate load information
// Call method LoadFromPPRHub() load data into V5
// Release and set to NULL the pointer to DNBIMHILoadParameters
// obtained via the call to CreateLoadParameters
pOpenAccess->Release();
pOpenAccess = NULL;
} // if (SUCCEEDED(RC) && NULL != pOpenAccess)
} // if (pSession)
| public virtual ConnectToPPRHub( | const | iUsername, |
| const | iPassword) |
S_OK if connection established OK
S_FALSE if connection is already established for user
E_FAIL if connection could not be established
| public virtual CreateLoadParameters( | oLoadParameters) |
S_OK if object created ok and interface pointer returned OK
E_FAIL on error
| public virtual LoadFromPPRHub( | const | iLoadParameters, | |
| oLoadedDoc, | |||
| oErrorMessages, | |||
| iCreateDefaultWindow | = TRUE, | ||
| iIsReadOnly | = FALSE ) |
S_OK if everything ran OK
E_FAIL on error
Copyright © 2003, Dassault Systèmes. All rights reserved.