CString转string

#include <string>
#include <atlstr.h>

int main()
{
	CString strCString = "iloveyou";
	std::string strString = CT2A(strCString);
	return 0;
}

posted on 2015-12-31 20:29  gcczhongduan  阅读(287)  评论(0编辑  收藏  举报