At 04:37 PM 11/22/2004, you wrote:
Thanks Ben.

But does the Palm OS REALLY have any system error message that
would be 256 bytes long?

I am wondering how big I have to make my buffer and the max length
parameter to ensure I get the whole error string.  But allowing for
256 bytes seems overkill.  I would have expected that the Palm OS
writers would have defined a macro or constant for the longest
defined system error string with each SDK version.  Put it this
way: in the implementation of the function called by the ErrAlert
macro, how big did the Palm OS writers make the string buffer for
that function?

The implementation of ErrAlertCustom doesn't use SysErrString; it implements its own resource reading code using SysStringByIndex because it also handles reading error resources from the active application for app-specific error numbers.



-- Ben Combee, Technical Lead, Developer Services, PalmSource, Inc. "Combee on Palm OS" weblog: http://palmos.combee.net/ Developer Fourm 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