char* StringToChar(CString& str)
{
long len = str.GetLength();
len = len*2;
char *szTemp = new char[len+1];
{
long len = str.GetLength();
len = len*2;
char *szTemp = new char[len+1];
memset(szTemp, 0, len+1);
USES_CONVERSION;
strcpy(szTemp, T2A(str));
USES_CONVERSION;
strcpy(szTemp, T2A(str));
return szTemp;
}
}
참고사이트
댓글 없음:
댓글 쓰기