CString str_code = "FFFFFFF1";unsigned long ulong_code = strtoul(str_code.GetBuffer(9), NULL, 16); char *_itoa( int value, char *string, int radix ); 尽然把这些基本的东西忘了!