int转换为CString:
CString csName;
int num;
csName.Format("%d", num);
CString转换为int:
int num = atoi(csName);
MFC中CString和int的转换
原文:http://blog.csdn.net/u011848617/article/details/38824889