|
-
UNICODE+VB6
HOW TO DISPLAY UNICODE STRING ON VB FORMS?
I HAVE TESTED A 3 LANGUAGES STRING TO BE DISPLAYES IN TEXT BOX OR BABEL,
NO WAY.
DO YOU HAVE ANY IDEA?
-
Re: UNICODE+VB6
JALAL AL HADDAD wrote:
> HOW TO DISPLAY UNICODE STRING ON VB FORMS?
> I HAVE TESTED A 3 LANGUAGES STRING TO BE DISPLAYES IN TEXT BOX OR BABEL,
> NO WAY.
> DO YOU HAVE ANY IDEA?
I'm perplexed. VB strings are all Unicode internally. If you assign a string
to a caption of, say a label control, it should
display correctly (on NT).
Windows 95/98 doesn't support Unicode, so I'm not sure what would happen in
that case.
Dan
-
Re: UNICODE+VB6
Hi Dan & Jalal,
Sorry for dropping in late here.
>I'm perplexed. VB strings are all Unicode internally. If you assign a string
>to a caption of, say a label control, it should display correctly (on NT).
But AFAIK, windowed VB controls are ANSI even on NT, created with
CreateWindowExA. IsWindowUnicode returns FALSE. Doesn't that matter?
Also, I think I read somewhere that VB sets all text/caption
properties using SetWindowTextA or SendMessageA(WM_SETTEXT). So no
Unicode strings would make it through without first being converted to
ANSI.
I'm not sure what happens for windowless controls like Labels. I guess
it depends on which function VB uses to draw the caption.
Mattias
__________________________________________________
Mattias Sjögren (MCP) - mattiass @ hem.passagen.se
VB+ http://hem.spray.se/mattias.sjogren/
Please send questions/replies to the newsgroups
Similar Threads
-
Replies: 13
Last Post: 05-23-2005, 05:22 PM
-
Replies: 246
Last Post: 10-26-2002, 12:30 AM
-
By James Wong \(Infrasys\) in forum .NET
Replies: 0
Last Post: 08-14-2002, 01:59 AM
-
By James Wong \(Infrasys\) in forum .NET
Replies: 0
Last Post: 08-14-2002, 01:59 AM
-
By Richard Curzon in forum .NET
Replies: 3
Last Post: 07-21-2001, 02:32 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks