UNICODE+VB6


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: UNICODE+VB6

  1. #1
    JALAL AL HADDAD Guest

    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?
    Share on Google+

  2. #2
    Dan Appleman Guest

    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


    Share on Google+

  3. #3
    Mattias Sjögren Guest

    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
    Share on Google+

Similar Threads

  1. Replies: 13
    Last Post: 05-23-2005, 06:22 PM
  2. Speaking of strings...
    By Harlow in forum .NET
    Replies: 246
    Last Post: 10-26-2002, 01:30 AM
  3. Re: VB.Net support Unicode Control ?? (Form,label,textbox...)
    By James Wong \(Infrasys\) in forum .NET
    Replies: 0
    Last Post: 08-14-2002, 02:59 AM
  4. Re: VB.Net support Unicode Control ?? (Form,label,textbox...)
    By James Wong \(Infrasys\) in forum .NET
    Replies: 0
    Last Post: 08-14-2002, 02:59 AM
  5. Replies: 3
    Last Post: 07-21-2001, 03: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
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center