如题  谢谢

解决方案 »

  1.   


    int num = 100;CString str;str.format("%d",num);
      

  2.   

    CString str;
    str.Format(_T("%d"), 1234);str里就是数值了, 跟printf用法差不多.
      

  3.   

    CString str;
    int i=0;
    str.Format(_T("%d",i);
      

  4.   

    不太明白你的意思 调用一下CString的Format函数不可以吗
      

  5.   

    貌似有很多方法吧?上面说的format就行,另外提供一种方法itoa(),把int 按进制转换为字符数组.或者你想要一个CString APIName(int X),这种参数为int,返回值为CString的API吗?