2008年11月11日 星期二

char to CString

based on WindowsXP, MFC

char Buf[128];
CString strGetVersion;

You can use this to transfer char to CString.
strGetVersion.Format(_T("%s"),Buf);

Update 2009/11/18
or
strGetVersion = Buf;

Reference:
http://www.builder.com.cn/2007/0928/528188.shtml

透過Facebook分享

沒有留言: