项目中需要将UINT64数据输出,使用CString.Format INT64 i = 1239848894330306899; CString Msg; Msg.Format("%I64d“, ui); MessageBox(Msg); //16进制 char buffer[64]; _i64toa(ui, buffer, 16); MessageBox(buffer); UINT64 ui = 12398488943303068994; CString Msg;Msg.Format("%I64u“, ui); MessageBox(Msg);