Negative values in resource.h
-
Hi all. Has anyone else ever had a problem with the VC++ resource editor giving controls, strings etc. constants with negative values in resource.h? eg, I often get an assertion because the res ed has put something in like this: #define IDC_MYCTRL -63231 is it a known issue? is there a fix? pls excuse me if this is an old one :-O NB
-
Hi all. Has anyone else ever had a problem with the VC++ resource editor giving controls, strings etc. constants with negative values in resource.h? eg, I often get an assertion because the res ed has put something in like this: #define IDC_MYCTRL -63231 is it a known issue? is there a fix? pls excuse me if this is an old one :-O NB
This has happened to me, only once. I have no idea why - I just made the value positive and that was it. I suspect it may have something to do with the 'next' values stored at the bottom, I don't know what the maximum value there is, but if it's not stored as an unsigned value, then it will roll over to a big negative number. Christian #include "std_disclaimer.h" People who love sausage and respect the law should never watch either one being made. The things that come to those who wait are usually the things left by those who got there first.