字符类型之间的相互转化(2): 1.c_str()函数 c_str 函数可把表达式转换为字符串(string)类型。 注释:若表达式的类型不同, c_str 输出的结果也会有所不同。 2.DWORD类型转CString类型 方法: DWORD dword; CString str; str.Format(_T("%d"),dword)