#define debug_with_int(msg, int) { \
char outStr[128];
\
StrPrintF(outStr, msg, int); \
WinDrawChars(outStr, StrLen(outStr), 50, 50 ); \
}
- make sure there's a %d in msg (or %ld, %u, %lu - depending on the type
of int you're using)
good luck,
Caspar
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of KEN
Sent: Monday, November 17, 2003 9:26 AM
To: Palm Developer Forum
Subject: How to draw integer?
hi all,
I want to debug the program
I used to use
#define abort(msg) ErrDisplayFileLineMsg(__FILE__, __LINE__, msg)
#define debug(msg) WinDrawChars(msg, StrLen(msg), 50, 50 )
to show the string on the screen so I can know the value of string
but how to debug the integer values?
since I can't find function like WinDrawChars( ) for integer
thx
--
For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/