// *********************************************************
// ドキュメントのロード
// *********************************************************
void LboxIE::Load( LboxString *LString )
{
LboxIE::Load( LString->szLboxString );
}
void LboxIE::Load( LPTSTR lpPath )
{
_bstr_t bstrValue;
VARIANT vParam;
bstrValue.operator = (lpPath);
vParam.vt = VT_BSTR;
vParam.bstrVal =
(wchar_t*)(bstrValue.operator const wchar_t * ());
bError = false;
try {
if ( pIE != NULL ) {
pIE->Navigate2(&vParam);
}
}
catch (_com_error &e)
{
ComError.operator = ( (char *)(e.ErrorMessage()) );
bError = true;
}
}
|