请各位指教!

解决方案 »

  1.   

    CString str;
    int i;
    long l;
    UINT u;str.Format("%d", i);
    str.Format("%l", l);
    str.Format("%u", u);
      

  2.   

    格式化输出就可以了
    CString str;
    int i;
    long l;
    UINT u;str.Format("%d", i);
    str.Format("%l", l);
    str.Format("%u", u);
      

  3.   

    谢谢大家
    谢谢
    那又怎么把CString转换为long,int,UINT类型呢
      

  4.   

    CString str;
    int  i;
    long l;
    UINT u;i = atoi((LPCTSTR)str);
    l = atol((LPCTSTR)str);
    u = strtoul((LPCTSTR)str, (char **)NULL, 10);