一个非常好用的Cstring转Char*方法

转自

<http://blog.csdn.net/dropship/article/details/3734626>

在这里看到的,试了一下,非常好用:

USES_CONVERSION;

CString strTime("2008");

constchar* st = T2A(strTime.GetBuffer(0));

这样fprintf时就不会出问题了。

posted @ 2013-01-06 15:15  handspeaker  阅读(269)  评论(0)    收藏  举报