By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,345 Members | 1,706 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,345 IT Pros & Developers. It's quick & easy.

how to output "wchar_t" in windows form application ?

P: 5
--------------------------------------------------------------------------------

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!!!
Nov 15 '06 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.