LPCTSTR lpStr = "123456789";int i=CString(lpStr).GetLength(); 转载于:https://www.cnblogs.com/2018shawn/p/9772018.html