"Mads Bondo Dydensborg" <mb*@dbc.dkwrote in message
news:ON**************@TK2MSFTNGP05.phx.gbl...
Claire wrote:
>Hi :)
I thought chars were unicode nowadays. If so then why does the following
return 1 as size of the struct please.
A guess: You marshal to some encoding, that is able to use a single byte
for
some chars. Example: utf8.
I havent set any encoding, the sample code is what I used in a new
application. I'm a bit confused why the size of the struct is 1 rather than
2 if the visual studio help hint that appears when my mouse passes over
"char" says "struct system.char represents a unicode character"
I'm creating some byte[] arrays of data to write to smartcards and need to
know how to create a struct that defines unicode char[] arrays rather than 1
byte char[] arrays