Kevin,
PalmRez will map the 0x0D to 0x0A (i.e a Carriage Return to a Line Feed).
If you are using a Mac, create your own resource type (in ResEdit) and stuff
this info in it. PalmRez will not transliterate this resource.
--vivek
"Kevin O'Keefe" <[EMAIL PROTECTED]> on 08/24/99 11:48:33 AM
Please respond to [EMAIL PROTECTED]
Sent by: "Kevin O'Keefe" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
cc: (Vivek Magotra/HQ/3Com)
Subject: Constructor Resource Bug or PalmOS Resource Bug or Programmer Bug ?
I'm trying to be a good boy and put all my strings for my app into a
resource database. Some of the strings I need to stash are binary PCL
printing commands, like this:
Char Start[] =
{0x1B,'%','-','1','2','3','4','5','X','@','P','J','L',' ',0x0D,0x0A,
'@','P','J','L',' ','E','N','T','E','R','
','L','A','N','G','U','A','G','E',
' ','=',' ','P','C','L',' ',0x0D,0x0A, 0x00};
I was able to write this sequence to a string list by editing it in hex
mode. I can save the resource and view it again in constructor (though
there are some weird drawing problems in constructor with a bunch of these
strings in there).
However, when I actually try to read this string programatically, I see that
the 0x0D, 0x0A sequence has been magically turned into a
0x0A, 0x0A sequence, which, needless to say, doesn't have the desired PCL
affect.
Why is my binary data being changed for me?
Is there a way to prevent this?
Thanks,
Kevin
____________________________
Kevin O'Keefe
The Windward Group
A Metamor Software Solutions Company
TEL: (408) 399-8577
FAX: (408) 395-9642