CString转换为int、long、char*型的一些函数和例子
1.CString->int、longCString strTest = "1000 test";int i = 0;i = _ttoi(strTest);strTest = "-199 dollars";long l = 0;l = _ttol(strTest); 输出:i = 1000;l = -199; 2.CStringchar*2.1