I'm reading "Instant Palm OS Applications" .... most straight way to output
string is using WinDrawChars if you want direct output on screen, like:

  // Output constant string
  WinDrawChars("Low button pressed", StrLen( "Low button pressed"), 40,
100);

  // Output string
  Char sOutput[30];
  StrCopy( sOutput, "It is line 1234.");
  WinDrawChars( sOutput, StrLen( sOutput), 10, 20 );

  // Output Integer
  Char sOutput[20];
  Char sValue[10];
  StrCopy( sOutput, "x is ");
  StrIToA( sValue, x );
  StrCat( sOutput, sValue );
  WinDrawChars( sOutput, StrLen( sOutput, 10, 100 );

etc.

You can create function yourself to reduce duplicated codes.


"Lotfi" <[EMAIL PROTECTED]> �b�l�� news:[EMAIL PROTECTED] �����g...
> Hi
>
> how can you add
>          printf ("%ld bytes sent\n", nTx );
> in my codewarrior programs ???
> it is not supported by Codewarrior as standard ???
> but I found
> \CodeWarrior\(MSL for Palm OS)\MSL_C\MSL_Common\Include\
> the stdio.h
> but not the .lib or...
> how do you add it in your file (for debugging purpose) ?
>
>
> Thanks again for your help
>
>
>
>
>
>
>
>



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

Reply via email to