谢谢.

解决方案 »

  1.   

    ::MessageBox()
    ATL也支持CString
      

  2.   

    CString str = ".....";
    ::MessageBox(NULL,str,"youstitle",MB_OK);
      

  3.   

    加入,CString 出现未定义错误.
    加如#include <afx.h>出现如下:
    c:\program files\microsoft visual studio\vc98\mfc\include\afxv_w32.h(14) : fatal error C1189: #error :  WINDOWS.H already included.  MFC apps must not #include <windows.h>
    删掉WINDOWS.H 也不行.::MessageBox(NULL,str,"youstitle",MB_OK);
    消息框可以谢谢.
      

  4.   

    CString在只有ATL7.0才支持,即在VC.net下的ATL才支持。在VC6下只有MFC支持CString“字符串转成大写字母”使用CharUpper即可,这是Win32 API,不需要类库的支持
      

  5.   

    ok,thank you very much.