Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Interop / April 2007

Tip: Looking for answers? Try searching our database.

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

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
nightsky - 23 Apr 2007 06:38 GMT
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..
Christian Fröschlin - 23 Apr 2007 09:19 GMT
> 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).
nightsky - 24 Apr 2007 02:34 GMT
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 !!

> > 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.
[quoted text clipped - 4 lines]
> system default and the user language to Japanese, reboot, and use
> JIS encoding for the text (possibly also need to specify font).

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.