bool convertHexStringToInt(char* pstrHex, unsigned long* pResult) { if(sscanf(pstrHex, “%x”, pResult) == ) return false; else return true; }