Index: src/rc2lng/rc.cpp =================================================================== diff -u -N -ra27d1acf1bda3c25b6dcce0d0eb0278009ce63ae -r5446395d3925e49d3e4cba82044bdfd4dffb6ee9 --- src/rc2lng/rc.cpp (.../rc.cpp) (revision a27d1acf1bda3c25b6dcce0d0eb0278009ce63ae) +++ src/rc2lng/rc.cpp (.../rc.cpp) (revision 5446395d3925e49d3e4cba82044bdfd4dffb6ee9) @@ -72,7 +72,7 @@ if(str.Find(_T("x")) != -1) { // hex2dec - if(_stscanf(str, _T("%lx"), &iID) != 1) + if(_stscanf(str, _T("%x"), &iID) != 1) { CStringA strText; strText.Format("%s(%ld) : Error: Cannot parse hex number in line:\n%s", pszFile, lLineNo, m_pszBuffer); @@ -291,7 +291,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