Cstring转换 const char* 出错
法2://UNICODE模式下,把CString 转换为Char
CString str = this->mSourceFile;
wchar_t*wchar;
wchar= str.GetBuffer();
str.ReleaseBuffer();
size_tconvertedChars = 0;
size_tsizeInBytes = ((str.GetLength()+1)*2);
char*ch = (char*)malloc(sizeInBytes);
wcstombs_s(&convertedChars,ch,sizeInBytes,wchar,sizeInBytes);