Connecting Tech Pros Worldwide Help | Site Map

how to output "wchar_t" in windows form application ?

Newbie
 
Join Date: Oct 2006
Posts: 5
#1: Nov 15 '06
--------------------------------------------------------------------------------

Hi guys,

I am using Window form application in Visual studio 2005 to accomplish a serial communication.

Now I have a dummy problem. By using Port3->Read(a,0,51), I receive data from a seiral port. I simply want to show one char from this array a in one window form (type of a is wchar_t array), such as a[0].

How can I do it? textbox->text and label->test need string type.
I tried std::wcout<<a[0], there is no error. But where is the data?

I am stuck for a long time.Can anybody help me out? thanks a lot!!!
Reply