He just made a typo. Char szL[10]; StrPrintF(szL, "%lu", L); WinDrawChars(szL, StrLen(szL), 10, 120);
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, March 01, 2002 8:27 AM To: Palm Developer Forum Subject: RE: How to print a UInt32 it doesn't work it makes this error : illegal implicit conversion from 'unsigned long' to 'const char *' > You can't just cast a UInt32 to a char* they are not compatible > > Try this > > Char szL[10]; > StrPrintF("%i", L); > WinDrawChars(szL,StrLen(szL),10,120); > > Fergal. > > > -----Original Message----- > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > > Sent: 01 March 2002 16:12 > > To: Palm Developer Forum > > Subject: How to print a UInt32 > > > > > > Hi, > > > > I would like to know the value of a UInt32 with WindrawChars > > (I can't use the debug to know the value). > > > > I have tried > > > > UInt32 L; > > WinDrawChars((char*)L,StrLen((char*)L),10,120); > > > > But it make a fatal exception. > > > > I have tried > > > > UInt32 L; > > StrCopy(codePhys,(const char*)L); > > WinDrawChars(codePhys,StrLen(codePhys),20,100); > > > > But it make the same error. > > > > If someone could help me. > > > > Thanks > > > > Best Regards > > > > Helene > > > > ____________________________________________________________ > > Faites un voeu et puis Voila ! www.voila.fr > > Avec Voila Mail, consultez vos e-mails sur votre mobile Wap. > > �TM��`= > > -���z�my�����>�r��� > > > ____________________________________________________________ Faites un voeu et puis Voila ! www.voila.fr Avec Voila Mail, consultez vos e-mails sur votre mobile Wap. S��+(tm)�b�z'�ȧ'�^=�f ��-S^�Z+�k(��.z�>���m�ey��硶��0��f��(>�^��^r�sh��ߢ�� -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
