Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Extended characters in edit control

Status
Not open for further replies.

Elroacho

Programmer
Apr 19, 2004
59
0
0
NZ
Hi,

I am writing a windows CE application for Pocket PC 2002/3.

I have a wide string containing extended characters which I read from a text file.

If if output the string to another text file I get the following...

Code:
FSV AUTÓMODELLEZÕ EGYESÜLET

Which is fine.

However if I try and output it to an edit control the string looks corrupted from the first extended character. I basically end up with two strage chars for each extended char.

I have tried converting using a codepage and multibyteToWideStr() function but this made no differnce.

I am using the following code to display the text...

Code:
m_OutletName = outlet_name.c_str();

m_OutletName is a CString that is bound to the edit control
outlet_name is a std::string that contains the initial string to output to a text file in the correct way.

Does anyone have any idea of how to display extended chars in an Edit control.

Cheers in advance.

Kevin.
 
Don't know very much about Windows CE but does it have Rich Edit controls? If it does, you could try those. Alternatively, build with the UNICODE flag set unless this doesn't exist in CE either.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top