会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
刘华世的官方博客
刘华世的博客
https://www.pythonschool.com#刘华世的官方博客
博客园
首页
新随笔
联系
管理
订阅
2012年12月11日
CString 转 int
摘要: CString转int:非Unicode环境CString str("1234");char *ch = str.GetBuffer(str.GetLength());int num = atoi(ch);str.ReleaseBuffer();int转CString:非Unicode环境CString str;int num = 1234;str.Format("%d",num);不建议使用(LPSTR)(LPCTSTR)这样的转换,不安全,错误率高。
阅读全文
posted @ 2012-12-11 21:11 pythonschool
阅读(332)
评论(0)
推荐(0)
编辑
公告
刘华世的官方博客