CString :: Format ("% d", xx); where XX can't be double precision, otherwise transforming errors, you should use CString :: Format ("% D", (long) xx);
example:
Double D = 22.443;
CString Str;
Str.format ("% D", D); converted Str = "1924145349", this is wrong.