1、CString和int1VARIANT和int(VARIANT与其他类型的转换类似)1_bstr_t和cstring1Cstring和CTime1Cstring和COleDateTime2字符和ASCII码2CString和int(1)CString str; int a=100; str.Format("%d",a);(2)CStingstr("1234");Inti=atoi(str);VARIANT和int(VARIANT与其他类型的转换类似)(1)VARIANTb;b.intVal=3;(2)inti=b.intVal;_bstr_t和cstring(1)_bstr_ts1