Click here to Skip to main content
15,889,992 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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!
Posted

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.
 
Share this answer
 
Comments
CHill60 2-Apr-15 11:07am    
Which is essentially the information from the link in the accepted solution from over a year ago
hlvas 2-Apr-15 13:47pm    
I agree. The only added info is that you resolve this by manually changing the value in the resource.h file.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900