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