MCPcopy Create free account
hub / github.com/Squirrel/Squirrel.Windows / StrToDouble

Method StrToDouble

src/Setup/wtl90/atlctrlx.h:3437–3452  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3435 }
3436
3437 double StrToDouble(LPCTSTR lpstr)
3438 {
3439 ATLASSERT(lpstr != NULL);
3440 if(lpstr == NULL || lpstr[0] == _T('\0'))
3441 return 0;
3442
3443 USES_CONVERSION;
3444 HRESULT hRet = E_FAIL;
3445 double dblRet = 0;
3446 if (FAILED(hRet = ::VarR8FromStr((LPOLESTR)T2COLE(lpstr), LANG_USER_DEFAULT, LOCALE_NOUSEROVERRIDE, &dblRet)))
3447 {
3448 ATLTRACE2(atlTraceUI, 0, _T("VarR8FromStr failed with result of 0x%8.8X\n"), hRet);
3449 dblRet = 0;
3450 }
3451 return dblRet;
3452 }
3453
3454 bool StrToDecimal(LPCTSTR lpstr, DECIMAL* pDecimal)
3455 {

Callers 1

DoSortItemsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected