HighTechTalks DotNet Forums  

com in winform of .net could not display wrong character??

Dotnet Framework (Interop) microsoft.public.dotnet.framework.interop


Discuss com in winform of .net could not display wrong character?? in the Dotnet Framework (Interop) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
nightsky
 
Posts: n/a

Default com in winform of .net could not display wrong character?? - 04-23-2007 , 01:38 AM






sorry , my english is poor. hope you guys could understand me.

i have a activex window(com), an i use this activex ctrl on a winform
window(.net).
The Acitvex Ctrl has en Edit Window taking character. when i input character
like chinese or japanese, the edit window CAN NOT display the right charater.

I Found that:

ActiveX is a ANSI WINDOW
Edit window is a ANSI WINDOW
Winform is a UNICODE WINDOW

when i debug activex, i found that the Edit Window get a UNICODE character
but
it display the ANSI charater without translating.

so is this the microsoft`s bugs ???
How could i solve this problems ???

thanks very much..




Reply With Quote
  #2  
Old   
nightsky
 
Posts: n/a

Default Re: com in winform of .net could not display wrong character?? - 04-23-2007 , 09:34 PM






thank you for your reply

user language is ok.
today i found that, when use my activex in VB or VC , it is OK.
But In DOT NET winform , it does not.

It is so confused me !!

"Christian Fröschlin" wrote:

Quote:
nightsky wrote:

The Acitvex Ctrl has en Edit Window taking character. when i input character
like chinese or japanese, the edit window CAN NOT display the right charater.

Well, if your ActiveX control doesn't support Unicode, it doesn't
support Unicode. That's not uncommon for native controls. It should
be able to display, e.g., Japanese characters, if you set both the
system default and the user language to Japanese, reboot, and use
JIS encoding for the text (possibly also need to specify font).


Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.