"Jim Rendant" <[EMAIL PROTECTED]> wrote in message news:26582@palm-dev-forum...
>
> I am running the latest Codwarrior for windows with service patch 1
applied.
>
> If I have a string that looks like "0045\0A\002:00\0   1\0", the first
> string is correct 0045 the second string becomes A\2:00

If I understand you correctly, you want your string to start with "0045",
then have the hex value 0x0A, then the hex value 0x00, then "2:00", then a
NUL, then "   1", with finally two NULs at the end.

One form that would work is

    "0045\x0A\x00" "2:00\x00   1\x00"

Note, the string is split into two strings here, but is recombined by the C
parser.  I put the split in so the \x00 wouldn't be interpreted as \x002.

Advice: get a book on ANSI/ISO C and read up on string escape characters.



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

Reply via email to