高级会员
注册日期: 06-11
帖子: 1527
精华: 15
现金: 6353 标准币
资产: 6353 标准币
|
请问在VS.net2005 中如何将字符串CString转化成字符串数组?CHAR[]
梦回唐古拉 10:21:54
请问在VS.net2005 中如何将字符串CString转化成字符串数组?CHAR[]
西 西 10:29:14
CString theString( "This is a test" );
int sizeOfString = (theString.GetLength() + 1);
LPTSTR lpsz = new TCHAR[ sizeOfString ];
_tcscpy_s(lpsz, sizeOfString, theString);
|