Okay.But is there not a function, thats convert { "test" } to { 0x74,
0x65, 0x73, 0x74, 0x00 }? because the reader can only understand
command in the last form ({ 0x74, 0x65, 0x73, 0x74, 0x00 }).
I hope you have understand what i mean.
thanks in advance
--- In [EMAIL PROTECTED], Matt Graham <[EMAIL PROTECTED]>
wrote:
> Silvain Jewoh wrote:
> > I write some Application to read a chip Card with a chip card
reader for
> > palm. I must send the commans to the reader in Hex (e.g. Char com
[] =
> > {0x00, 0x33, 0x34, 0x34,0x00}).
> >
> > The user must give some parameter on the palm and i dont know how
i can
> > change the format Char com [] = {"test"} to this Char com [] =
{0x00,
> > 0x00......
>
> I'm not entirely clear on what you're actually asking but I'll give
it a
> shot.
>
> 0x00 format is just a byte. one hex digits represents 4 bits, so 2
hex
> digits represents 8 bits or a byte.
> char com[] = { "test" } = char com[] = { 0x74, 0x65, 0x73, 0x74,
0x00 }
>
> so, you might already have it in the right format.
> hope that helps
> Matt
>
>
> --
> 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/