Page 1 of 1

Unicode channel names in a char buffer

Posted: Thu Jun 04, 2009 6:09 am
by fredx21
Hi rel,

in the TChlChannel, the strings are of type char:

Code: Select all

char ChName[MAX_STR_SIZE];
char Provider[MAX_STR_SIZE];
char ActualChName[MAX_STR_SIZE];
However, inside DD, the strings are unicode. This is clearly visible in the channel list since it displays unicode characters.

The hex bytes in the TChlChannel's strings seems to be the real unicode string.

Is there a way to tell whether the strings inside the TChlChannel's byte buffers (ChName, Provider and ActualChName) are unicode or not?

Fred

Posted: Thu Jun 04, 2009 7:52 am
by fredx21
It's ok, I will use codepage.

Fred

Posted: Mon Jun 08, 2009 11:37 pm
by rel
yea, based on default code page,
they are not unicode. Each character takes one byte.