c++ 学习备忘

 

char* 到 LPCTSTR 转换

    char *m_str = "test!";
    MessageBoxW(CString(m_str));

 CString to LPCTSTR 

CString s( "abcd" );
LPTSTR p = s.GetBuffer( 10 );

 

posted @ 2016-02-28 19:45  yjig  阅读(166)  评论(0编辑  收藏  举报