format used is wrong. %lu is the right one when you convert
DWORD
to
CString
.
temp.format("%lu", abc);
On conversion
CString
to
DWORD
the effective error free approach would be:
abc= atol((char*)(LPCTSTR)temp);
Now you can verify both conversions.
Thanks,
Kuthuparakkal