zoukankan      html  css  js  c++  java
  • VS2010 Cstring to int

    今天遇到一个将Cstring转化为int的问题,用atoi(),发现不可以,找了一下原因。

    原来因为在VS2015(2010)的版本中是UNICODE ,请使用这个函数 _ttoi() 。

    CString str1 = _T("2");

    int temp = _ttoi(str1);

    http://blog.csdn.net/lyd_253261362/article/details/6126131

    ANSI UNICODE 通用
         
         
         
         
         
         
         
  • 相关阅读:
    http方法-get和post
    SVG
    canvas
    h5拖放
    jQuery表单事件
    html标签嵌套
    jquery.eq()
    jquery.index()
    Date对象
    json
  • 原文地址:https://www.cnblogs.com/Uthinker/p/5663550.html
Copyright © 2011-2022 走看看