You might not need to convert anything. if you're working with single
bytes, you can manipulate individual bits using a single character in the
string and the standard bitwise operators (&,|,^,etc). (works best with
unsigned characters)
MyChar[0] = (MyChar[1] & 0x0F) << 0x10; // Works for me
----- Original Message -----
From: "Charles Rezsonya" <[EMAIL PROTECTED]>
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent: Wednesday, July 05, 2000 3:25 PM
Subject: manipulative question
> hi, i'm trying to manipulate a string at the bit level sorta like
> processing it. what i'm going to do is receive a string, convert it to
> binary, manipulate a few bits, and turn it back to string (or hex or
> whatever), and handle it from there. question is how can i convert it to
> binary, add / remove a bit or two, and convert it back to handle?
>
> tia for any answers !
> Charles R
>
>
> --
> For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/tech/support/forums/
>
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/