MFC中CString转化为char*

char* convertCStringToChars(CString string)
{
int nLength=string.GetLength();
char *c=new char[nLength+];
memset(c,,nLength+);
WideCharToMultiByte(CP_ACP,,string,nLength,c,nLength,NULL,NULL);
return c;
}
上一篇:刷题70. Climbing Stairs


下一篇:c# win form 显示支付宝二维码图片