Lines Matching refs:hr
256 HRESULT hr; in convertSelfToCom() local
257 if (FAILED(hr = VariantCopy(pVar, pvariant))) in convertSelfToCom()
261 OUString::valueOf(hr)); in convertSelfToCom()
308 HRESULT hr; in variantToAny() local
314 if( FAILED(hr= VariantCopyInd( &var, const_cast<VARIANTARG*>(pArg)))) // remove VT_BYREF in variantToAny()
317 "VariantCopyInd failed for reason : ") + OUString::valueOf(hr)); in variantToAny()
334 if(SUCCEEDED( hr= VariantChangeType( &var, &var, 0, VT_BSTR))) in variantToAny()
336 else if (hr == DISP_E_TYPEMISMATCH) in variantToAny()
343 if(SUCCEEDED(hr = VariantChangeType( & var, &var, 0, VT_I2))) in variantToAny()
345 else if (hr == DISP_E_TYPEMISMATCH) in variantToAny()
358 if(SUCCEEDED(hr = VariantChangeType( & var, &var, 0, VT_I4))) in variantToAny()
360 else if (hr == DISP_E_TYPEMISMATCH) in variantToAny()
446 if(SUCCEEDED(hr = VariantChangeType( & var, &var, 0, VT_BOOL))) in variantToAny()
448 else if (hr == DISP_E_TYPEMISMATCH) in variantToAny()
454 if(SUCCEEDED(hr = VariantChangeType( & var, &var, 0, VT_BSTR))) in variantToAny()
456 else if (hr == DISP_E_TYPEMISMATCH) in variantToAny()
462 if(SUCCEEDED(hr = VariantChangeType( & var, &var, 0, VT_R4))) in variantToAny()
464 else if (hr == DISP_E_TYPEMISMATCH) in variantToAny()
470 if(SUCCEEDED(hr = VariantChangeType( & var, &var, 0, VT_R8))) in variantToAny()
472 else if (hr == DISP_E_TYPEMISMATCH) in variantToAny()
478 if(SUCCEEDED(hr = VariantChangeType( & var, &var, 0, VT_I1))) in variantToAny()
480 else if (hr == DISP_E_TYPEMISMATCH) in variantToAny()
486 if(SUCCEEDED(hr = VariantChangeType( & var, &var, 0, VT_I2))) in variantToAny()
488 else if (hr == DISP_E_TYPEMISMATCH) in variantToAny()
494 if(SUCCEEDED(hr = VariantChangeType(& var, &var, 0, VT_I4))) in variantToAny()
496 else if (hr == DISP_E_TYPEMISMATCH) in variantToAny()
502 if(SUCCEEDED(hr = VariantChangeType(& var, &var, 0, VT_DECIMAL))) in variantToAny()
516 else if (hr == DISP_E_TYPEMISMATCH) in variantToAny()
522 if(SUCCEEDED(hr = VariantChangeType( & var, &var, 0, VT_UI2))) in variantToAny()
524 else if (hr == DISP_E_TYPEMISMATCH) in variantToAny()
530 if(SUCCEEDED(hr = VariantChangeType( & var, &var, 0, VT_UI4))) in variantToAny()
532 else if (hr == DISP_E_TYPEMISMATCH) in variantToAny()
538 if(SUCCEEDED(hr = VariantChangeType(& var, &var, 0, VT_DECIMAL))) in variantToAny()
547 else if (hr == DISP_E_TYPEMISMATCH) in variantToAny()
553 if(SUCCEEDED(hr = VariantChangeType(& var, &var, 0, VT_UNKNOWN))) in variantToAny()
555 else if (hr == DISP_E_TYPEMISMATCH) in variantToAny()
622 HRESULT hr= S_OK; in anyToVariant() local
644 if(FAILED(hr = VariantChangeType(&var, &var, 0, type))) in anyToVariant()
646 if (hr == DISP_E_TYPEMISMATCH) in anyToVariant()
660 OUSTR(" failed! Error code: ") + OUString::valueOf(hr)); in anyToVariant()
663 if(FAILED(hr = VariantCopy(pVariant, &var))) in anyToVariant()
667 "VariantCopy failed for reason: ") + OUString::valueOf(hr)); in anyToVariant()
798 HRESULT hr = S_OK; in anyToVariant() local
799 if (FAILED(hr = VariantClear(pVariant))) in anyToVariant()
803 "VariantClear failed with error:") + OUString::valueOf(hr)); in anyToVariant()
1476 HRESULT hr = S_OK; in variantToAny() local
1482 if( FAILED(hr= VariantCopyInd( &var, const_cast<VARIANTARG*>(pVariant)))) // remove VT_BYREF in variantToAny()
1485 "VariantCopyInd failed for reason : ") + OUString::valueOf(hr)); in variantToAny()
1922 HRESULT hr= S_OK; in convertValueObject() local
1925 if(SUCCEEDED(hr = varDisp.ChangeType( VT_DISPATCH, var))) in convertValueObject()
1940 if (SUCCEEDED(hr= spValue->IsOutParam( &varBool))) in convertValueObject()
1945 if(SUCCEEDED(hr = spValue->GetValue( & bstrType, & varValue))) in convertValueObject()
1962 else if( hr != DISP_E_TYPEMISMATCH && hr != E_NOINTERFACE) in convertValueObject()
1998 HRESULT hr; in dispatchExObject2Sequence() local
1999 if( FAILED( hr= pvar->pdispVal->QueryInterface( IID_IDispatchEx, in dispatchExObject2Sequence()
2013 … if( FAILED( hr= pdispEx->GetIDsOfNames(IID_NULL, &sLength , 1, LOCALE_USER_DEFAULT, &dispid))) in dispatchExObject2Sequence()
2016 if( FAILED( hr= pdispEx->InvokeEx(dispid, LOCALE_USER_DEFAULT, DISPATCH_PROPERTYGET, in dispatchExObject2Sequence()
2054 … if( FAILED( hr= pdispEx->GetIDsOfNames(IID_NULL, &sindex , 1, LOCALE_USER_DEFAULT, &dispid))) in dispatchExObject2Sequence()
2059 if( FAILED( hr= pdispEx->InvokeEx(dispid, LOCALE_USER_DEFAULT, DISPATCH_PROPERTYGET, in dispatchExObject2Sequence()
2138 HRESULT hr= S_OK; in createOleArrayWrapperOfDim() local
2188 hr= SafeArrayGetElement(pArray, index, &V_BSTR(&variant)); in createOleArrayWrapperOfDim()
2281 HRESULT hr; in isJScriptArray() local
2286 hr= rvar->pdispVal->GetIDsOfNames( IID_NULL, &sindex, 1, in isJScriptArray()
2289 if( SUCCEEDED ( hr) ) in isJScriptArray()
2346 HRESULT hr= S_OK; in getImplementedInterfaces() local
2348 if( FAILED( hr= disp.GetPropertyByName( SUPPORTED_INTERFACES_PROP, &var))) in getImplementedInterfaces()
2350 hr= disp.GetPropertyByName( SUPPORTED_INTERFACES_PROP2, &var); in getImplementedInterfaces()
2352 if (SUCCEEDED( hr)) in getImplementedInterfaces()