itsmetomc
Programmer
- Dec 30, 2012
- 3
hello every one
I used to visit the tek tips forum regularly but got distracted for a while.
I have since picked up were i left off. I very quickly discovered that my
builder software would not work on windows 7 so I went to the builder site to
look for a compatible upgrade. I have the trial version of emabarcadero cuilder
and discovered that my older projects wont compile due to the unicode conversion.
I have a serial comunication project that i would like to work on but have run into
a converion problem. it would seem that my serial port is reciving ascii and i am
displaying chinese characters when i add the recieved input to a TMemo.
void __fastcall TForm1::Timer1Timer(TObject *Sender)
{
wchar_t Buff [100] = {0};
if (hCom){
Sleep (10);
ReadBuffer (Buff, hCom);
if (StrLen (Buff)) {
Memo1->Lines->Add(Buff);
}
}
}
this is what is being dispalyed in the memo
畐獬‽""
栍汥潬
畐獬‽"ഢ敨汬o
I am sure there is a simple conversion technique but i cant seem to ask the right
question in the search utility. you guys helped a lot in the past and it looks as if
will be visiting a lot in the future..
thanks in advance for your help
I used to visit the tek tips forum regularly but got distracted for a while.
I have since picked up were i left off. I very quickly discovered that my
builder software would not work on windows 7 so I went to the builder site to
look for a compatible upgrade. I have the trial version of emabarcadero cuilder
and discovered that my older projects wont compile due to the unicode conversion.
I have a serial comunication project that i would like to work on but have run into
a converion problem. it would seem that my serial port is reciving ascii and i am
displaying chinese characters when i add the recieved input to a TMemo.
void __fastcall TForm1::Timer1Timer(TObject *Sender)
{
wchar_t Buff [100] = {0};
if (hCom){
Sleep (10);
ReadBuffer (Buff, hCom);
if (StrLen (Buff)) {
Memo1->Lines->Add(Buff);
}
}
}
this is what is being dispalyed in the memo
畐獬‽""
栍汥潬
畐獬‽"ഢ敨汬o
I am sure there is a simple conversion technique but i cant seem to ask the right
question in the search utility. you guys helped a lot in the past and it looks as if
will be visiting a lot in the future..
thanks in advance for your help