一个非常好用的Cstring转Char*方法
转自
<http://blog.csdn.net/dropship/article/details/3734626>
在这里看到的,试了一下,非常好用:
USES_CONVERSION;
CString strTime("2008");
constchar* st = T2A(strTime.GetBuffer(0));
这样fprintf时就不会出问题了。
转自
<http://blog.csdn.net/dropship/article/details/3734626>
在这里看到的,试了一下,非常好用:
USES_CONVERSION;
CString strTime("2008");
constchar* st = T2A(strTime.GetBuffer(0));
这样fprintf时就不会出问题了。