posts - 0,  comments - 2,  trackbacks - 0
WCHAR temp[30] = L"18446744071646463584";
 ULONGLONG i = _wtoi64(temp);

in VS2003, Ok no overflow, i = 0xfff.....;
in Vs2008, overflow happen, i=0x7fffff...;

From MSDN:

In Visual C++ 2005, in the case of overflow with large positive integral values, _atoi64 returns I64_MAX and I64_MIN in the case of overflow with large negative integral values.

posted on 2008-11-06 18:53 Sean 阅读(149) 评论(0)  编辑 收藏 引用
只有注册用户登录后才能发表评论。
<2024年4月>
31123456
78910111213
14151617181920
21222324252627
2829301234
567891011

hello! 欢迎常来我这里逛逛!

常用链接

留言簿(2)

文章分类(3)

文章档案(4)

相册

收藏夹(4)

搜索

  •  

最新评论