字符串到长长转换(宽字符) [英] String to long long conversion (wide character)
本文介绍了字符串到长长转换(宽字符)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
我来自Linux背景.在MFC编程或Windows编程方面没有丰富的经验.目前,我正在尝试创建像应用程序这样的查看器的MFC项目.
我需要将字符串转换为Long Long.在Linux中,我们借助"wcstoll"功能来做到这一点.
Windows/MFC(Visual Studio 2010)中的等效功能是什么.
在此先感谢.
Hi All,
I am from Linux background. Don''t have extensive experience in MFC programming or Windows programming. Currently I am dabbling with MFC projects trying to create a viewer like application.
I have a requirement to convert string to Long Long. In Linux we does this with the help of ''wcstoll'' function.
What is the equivalent function in windows/MFC (visual studio 2010).
Thanks in Advance.
推荐答案
我认为它可能是 ^ ].您会发现,大多数C库调用在Linux和Windows之间是通用的,而后来的C库调用具有不同的命名约定.
I think it is probably wcstoui64()
[^]. You will find that the majority of C library calls are common between Linux and Windows, it''s the later ones that have the different naming conventions.
您应该使用"ToInt64"函数将String转换为long long.
这是MSDN链接:
http://msdn.microsoft.com/en-us/library/system.convert. toint64.aspx [ ^ ]
希望对您有所帮助.
Hi,
You should use "ToInt64" function to convert from String to long long.
Here is MSDN Link :
http://msdn.microsoft.com/en-us/library/system.convert.toint64.aspx[^]
Hope This helps.
这篇关于字符串到长长转换(宽字符)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文