ASSERT_VALID_IDR(nIDResource); //断言失败 [英] ASSERT_VALID_IDR(nIDResource); //assertion failure

查看:129
本文介绍了ASSERT_VALID_IDR(nIDResource); //断言失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

再次问好。我想这是很烦人的与人这些问题,但...我加了一个框架,doc和以现有的项目,现在它打破了这里:



ASSERT_VALID_IDR(nIDResource );



当我指向nIDResource时,它说它已定义(nIDResource | 40240),所以我无法想象有什么问题。我多次检查资源,一切似乎都很好。同样的文档和视图:/任何人都可以帮忙吗?

谢谢!

解决方案

参见http://computer-programming-forum.com/82-mfc/bc011f7cfdba0f14.htm [ ^ ]。

的nIDResource对应于一个大于允许的数字(40240)(0x8000 = 32768)。这就是你有断言的原因。它发生在我身上一次。手动将ID更改为较低的值对我来说是个窍门。我无法理解我的情况,为什么价值最初很大。


Hello again. I guess it's quite annoying with al these questions but... I added a frame, doc and view to an existing project and now it breaks here:

ASSERT_VALID_IDR(nIDResource);

When I point nIDResource, it says it IS defined(nIDResource|40240), so I can't imagine what's wrong. I checked the resources several times and everything seems to be fine. Same thing with the doc and view :/ Can anyone help?
Thanks!

解决方案

See http://computer-programming-forum.com/82-mfc/bc011f7cfdba0f14.htm[^].


the nIDResource corresponds to a number (40240) that is bigger than the allowed (0x8000=32768). That is the reason why you have the assertion. It happened to me once. Manually changing the ID to a lower value did the trick for me. I cannot understand though my case why the value was initially that big.


这篇关于ASSERT_VALID_IDR(nIDResource); //断言失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆