display TBuf8
| Thu, 2008-05-08 11:34 | |
|
Hello, Back here with problem again. I get some data from the serial port which i sent as 0x68 ( h ) However, when i read the buffer string that is defined in TBuf8 to compare with 0x68 Code is follows: commPort.Read(readState,KSeconds,readBuffer); However, it never shows me "get data i want", so i want to display the readBuffer, after convert TBuf8 to TBuf, the listbox shows me square, strange. Anyone knows how to display the TBuf8 on the screen correctly? |
|






Forum posts: 150
Marshalsh,
Have a look at:
http://www3.symbian.com/faq.nsf/0/D5889EFF80ED87B780256C290051923C?OpenDocument
Forum posts: 50
Little bit change may solve your problem as
if (readBuffer[i]==TChar(0x68))
{
UpdateListBox(_L"get data i want");
}
i.e. use Hex value in TChar wrapper
Jupitar
Forum posts: 9
Thanks for the reply, but still, it is not working. Any more ideas?