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 阅读(181) 评论(0)  编辑 收藏 引用
只有注册用户登录后才能发表评论。
<2026年2月>
25262728293031
1234567
891011121314
15161718192021
22232425262728
1234567

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

常用链接

留言簿(2)

文章分类(3)

文章档案(4)

相册

收藏夹(4)

搜索

  •  

最新评论