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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Unicode Application?

Status
Not open for further replies.

MoonchildHK

Programmer
Jun 5, 2001
22
HK
Hi,

I am trying to write a unicode application for windows, but not having much luck.

I noticed that on Internet Explorer (and other windows programs, even the 'Run' box) you can paste in double-byte characters (chinese in this case, I ctrl-c the text from Yahoo! Hong Kong website). The text shows up as it should. You can even have Chinese, Korean and English on one line in the IE URL edit box!

In my application however, it shows up as question marks. I tried to find documentation on this, but there is not much around. I found something about the -WU switch, which I did add to the compiler options, but it doesn't seem to help. I also tried using '#define UNICODE' and also '#define _UNICODE' and again that made no difference :-(

How can I get my program to work like the other windows programs do with double-byte characters? (I know that some routines support it and some don't, that's no problem, I just want the interface to accept double-byte text). I hope the answer is not "use Visual C++" because I am very fond of BCB, and don't like Microsoft products too much!

Thanks for any help,

Moonchild
 
BCB will handle Unicode very well. I don't have my manual with me but BCB 5 has a chapter on it. I do know that you have to tell the compiler to use unicode. Look at your help files for UniCode and Wide Characters.

James P. Cottingham

I am the Unknown lead by the Unknowing.
I have done so much with so little
for so long that I am now qualified
to do anything with nothing.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top