MFC Cstring 和int 类型的转化

来源:互联网 发布:上海数据库开发培训 编辑:程序博客网 时间:2024/05/22 13:03

Cstrng 转 int

Cstring str = "1234";

int a = _ttoi(str);

 

int 转Cstring

int a = 1234;

Cstring str;

str.Format(_T("%d"), a);