Click here to Skip to main content
15,902,939 members
Home / Discussions / C#
   

C#

 
GeneralRe: Naming inconsistencies in the BCL Pin
Nick Parker30-Oct-03 13:26
protectorNick Parker30-Oct-03 13:26 
GeneralRe: Naming inconsistencies in the BCL Pin
Heath Stewart30-Oct-03 12:32
protectorHeath Stewart30-Oct-03 12:32 
GeneralRe: Naming inconsistencies in the BCL Pin
Jeff Varszegi30-Oct-03 12:42
professionalJeff Varszegi30-Oct-03 12:42 
Generalbyte[] cast to a string Pin
Tym!30-Oct-03 8:07
Tym!30-Oct-03 8:07 
GeneralRe: byte[] cast to a string Pin
J. Dunlap30-Oct-03 8:21
J. Dunlap30-Oct-03 8:21 
GeneralRe: byte[] cast to a string Pin
Tym!30-Oct-03 10:34
Tym!30-Oct-03 10:34 
GeneralRe: byte[] cast to a string Pin
Jörgen Sigvardsson30-Oct-03 9:41
Jörgen Sigvardsson30-Oct-03 9:41 
GeneralRe: byte[] cast to a string Pin
Tym!30-Oct-03 10:48
Tym!30-Oct-03 10:48 
I'm not too familiar with the encoders/decoders or how unicode particularly works, but my concern here is that if i have for example:

byte b1=0x85;
byte b2=0x7f;

the data i want to actually send should be:

0x857f

which I believe would be a valid unicode char.

first of all, i don't want and encoder to "pad" my bytes when building a string (0x0085007f), nor do I want a decoder interpretting the bytes and apparent chars... thereby messing up the raw bits.

I tried forgetting about building the array as a string and just defining it as a byte[] in the struct, but I couldn't get the marshalling right (unable to marshal struct as unmanaged type; cannot determine size...) When using a string, I am not getting a runtime error, I am just not building the string properly because I am getting incorrect results.

I am open for any and all suggestions!

Thanks



GeneralRe: byte[] cast to a string Pin
Jörgen Sigvardsson30-Oct-03 11:20
Jörgen Sigvardsson30-Oct-03 11:20 
GeneralRe: byte[] cast to a string Pin
Tym!30-Oct-03 12:28
Tym!30-Oct-03 12:28 
GeneralRe: byte[] cast to a string Pin
Jörgen Sigvardsson30-Oct-03 12:32
Jörgen Sigvardsson30-Oct-03 12:32 
GeneralRe: byte[] cast to a string Pin
Tym!30-Oct-03 12:41
Tym!30-Oct-03 12:41 
GeneralRe: byte[] cast to a string Pin
Jörgen Sigvardsson30-Oct-03 12:45
Jörgen Sigvardsson30-Oct-03 12:45 
GeneralRe: byte[] cast to a string Pin
Blake Coverett30-Oct-03 11:35
Blake Coverett30-Oct-03 11:35 
GeneralRe: byte[] cast to a string Pin
Tym!30-Oct-03 12:33
Tym!30-Oct-03 12:33 
GeneralRe: byte[] cast to a string Pin
Jeff Varszegi30-Oct-03 13:11
professionalJeff Varszegi30-Oct-03 13:11 
GeneralRe: byte[] cast to a string Pin
leppie30-Oct-03 14:29
leppie30-Oct-03 14:29 
GeneralRe: byte[] cast to a string Pin
Tym!3-Nov-03 6:30
Tym!3-Nov-03 6:30 
Generalput codes into an event! Pin
Silly Boy30-Oct-03 6:19
Silly Boy30-Oct-03 6:19 
GeneralRe: put codes into an event! Pin
Heath Stewart30-Oct-03 9:09
protectorHeath Stewart30-Oct-03 9:09 
GeneralRe: put codes into an event! Pin
Judah Gabriel Himango30-Oct-03 9:12
sponsorJudah Gabriel Himango30-Oct-03 9:12 
GeneralRe: put codes into an event! Pin
Heath Stewart30-Oct-03 9:25
protectorHeath Stewart30-Oct-03 9:25 
GeneralRe: put codes into an event! Pin
Nick Parker30-Oct-03 13:28
protectorNick Parker30-Oct-03 13:28 
GeneralMoving a control Pin
mcgahanfl30-Oct-03 5:46
mcgahanfl30-Oct-03 5:46 
GeneralRe: Moving a control Pin
Mike Ellison30-Oct-03 6:21
Mike Ellison30-Oct-03 6:21 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.