int iValue = 12345;
wstring strResult;
wostringstream strCon;
strCon << iValue;
strResult = strCon.str();	// strResult is "1234"

int iResult = 0;
wstring strValue = L"12345";
wistringstream convert( strValue );
convert >> iResult;		// iResult is 12345


+ Recent posts