_tcstol Conversion Problem...
Hi,
I have to convert a hex value to int, for that I use
Variable are of foll. type..
std::string pFirstStr
wchar_t ptrTemp;
nChar = _tcstol(pFirstByteStr.c_str(), &ptrTemp,16);//Problem is here
as I have to support unicode.
Can u suggest solution, by which I can convert a hex value in std::string variable to int using UNICODE supported function...
Regs
Re: _tcstol Conversion Problem...
Like this?
Code:
std::wstring pFirstStr
wchar_t* ptrTemp;
nChar = _tcstol(pFirstByteStr.c_str(), &ptrTemp,16);//Problem is here
or maybe something like this:
Code:
std:basic_string<TCHAR> pFirstStr;
TCHAR* ptrTemp;
nChar = _tcstol(pFirstByteStr.c_str(), &ptrTemp,16);
- petter