thx
but if I want to debug  double  value, how can I do?
Since I looked for the StrPrintF( ), the formatStr only supports :
%d, %i, %u, %x, %s, %c



----- Original Message ----- 
From: "Caspar Heiden, vd" <[EMAIL PROTECTED]>
Newsgroups: palm-dev-forum
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent: Monday, November 17, 2003 4:49 PM
Subject: RE: How to draw integer?


#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/

Reply via email to