At 11:12 PM 12/30/2004, you wrote:
Thanks for the tip. I found the problem I was attempting to define a
constant as a binary value, and 0x01000000 wouldn't work, so I tried
0b01000000, a notation that was used in Palm OS Debugger. That caused
the problem. Solution was to just change the constants into hex
equivalents. BTW, is there a way to express an 8bit unsigned integer as
a binary value?

Neither Standard C or Standard C++ define a way of writing a binary constant. CW's compiler supports 0bXXXXXXXX notation as a language extension; some versions of GCC support this also, but I don't know when this was added to the GCC front-end.



-- Ben Combee, Technical Lead, Developer Services, PalmSource, Inc. "Combee on Palm OS" weblog: http://palmos.combee.net/ Developer Forum Archives: http://news.palmos.com/read/all_forums/



--
For information on using the Palm Developer Forums, or to unsubscribe, please 
see http://www.palmos.com/dev/support/forums/

Reply via email to