从UNICODE和ASCII的CString到int的转换 [英] CString to int conversion in both UNICODE and ASCII
本文介绍了从UNICODE和ASCII的CString到int的转换的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,在我的项目中,我需要将CString转换为int.我们在整个项目中使用字符串中性进行UNICODE和ASCII转换.所以我需要一种将CString都转换为int的方法.如果知道的话,请引导我...
在此先感谢
ganesh_IT
Hi guys, in my project i need to convert a CString to int. We are using string neutrals in whole project for UNICODE and ASCII conversion. SO i need a method which is converting CString to int in both. If you know please guide me...
Thanks in Advance
ganesh_IT
推荐答案
看看_tstoi().那应该可以满足您的需求.
祝你好运.
Have a look at _tstoi(). That should handle your needs.
Good luck.
这篇关于从UNICODE和ASCII的CString到int的转换的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文