473,387 Members | 1,641 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

how to output "wchar_t" in windows form application ?

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
0 1252

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

Similar topics

3
by: Jonathan Mcdougall | last post by:
I started using boost's filesystem library a couple of days ago. In its FAQ, it states "Wide-character names would provide an illusion of portability where portability does not in fact exist....
12
by: Robbie Hatley | last post by:
I'm getting a bizarre error with this code: ... case WM_COMMAND: { switch (LOWORD(wParam)) // switch (control ID) { ... case IDC_RAIN_ENABLE_SIMPLE: {
0
by: Jose Cintron | last post by:
I have a program that reads an XML file and extract a specific filed from the file. The filed is "free" form text, here's an example === start example text Ensure that individual users are not...
4
by: marsarden | last post by:
code below: #include <stdio.h> int main(void) { char *aaa={"a","b","c"}; printf("%S\n",*aaa); /*the uppercase character S*/ getchar();
0
by: ern | last post by:
So I want to compare the longer wchar_t type to a char type, using wcsstr and wcsstr. With a raw string, I can use 'L' like so: wcsstr((uint16_t *)wchar_String, L"regularCharString") ...
1
by: fswfsw | last post by:
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...
0
by: fswfsw | last post by:
I am using Microsoft visual studio 2005. Also i use windows application form. Now i have met some problem. I don't know how to output "int" or "wchar_t" types in the window application form? ...
2
by: Mohammad Omer | last post by:
Hi, i am developing an application which uses WAB API's, for doing all this i am using vs2k5. I have wab.h header file included in my project to use WAB api's but after compilation one error...
4
by: =?ISO-8859-2?Q?Boris_Du=B9ek?= | last post by:
Hi, I have an API that returns UTF-8 encoded strings. I have a utf8 codevt facet available to do the conversion from UTF-8 to wchar_t encoding defined by the platform. I have no trouble...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.