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?

  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



  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

Similar Threads

  1. Replies: 13
    Last Post: 05-23-2005, 05:22 PM
  2. Speaking of strings...
    By Harlow in forum .NET
    Replies: 246
    Last Post: 10-26-2002, 12: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, 01: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, 01:59 AM
  5. Replies: 3
    Last Post: 07-21-2001, 02:32 PM

Bookmarks

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


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


Sponsored Links