Index: src/rc2lng/rc.cpp =================================================================== diff -u -N -rcb4e9d4b60d62b25ae2cf556c0642601af56c787 -r44a2ec5f1eb0a435b56daef42ef5fe3b7a91da0d --- src/rc2lng/rc.cpp (.../rc.cpp) (revision cb4e9d4b60d62b25ae2cf556c0642601af56c787) +++ src/rc2lng/rc.cpp (.../rc.cpp) (revision 44a2ec5f1eb0a435b56daef42ef5fe3b7a91da0d) @@ -73,7 +73,7 @@ if(str.Find(_T("x")) != -1) { // hex2dec - if(_stscanf(str, _T("%lx"), &iID) != 1) + if(_stscanf(str, _T("%x"), &iID) != 1) THROW(icpf::exception::format(TSTRFMT _T("(%ld) : Error: Cannot parse hex number in line:\n") TSTRFMT, pszFile, lLineNo, m_pszBuffer), 0, 0, 0); } else @@ -275,7 +275,7 @@ // put the found ID as output text CString out; - out.Format(_T("\"%lu\""), uiID); + out.Format(_T("\"%u\""), uiID); str=str.Left(iPos)+out; } else