🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #4843

Re: how to use wide character symbols

#4843
From: Remy Lebeau (TeamB)
Date: Wed, 16 Nov 2005 22:25
21 lines
1900 bytes
"sky" <akeehuang@163.com> wrote in message
news:437aaaa3@newsgroups.borland.com...

> but how to support unicode for win9x in my BCB 6.0 program

You need to install the "Microsoft Layer for Unicode" first.  Then the
Unicode API functions will be available.  Otherwise, all Unicode strings
have to be converted to ANSI first before drawing/processing, which
obviously has potential for data loss.

> MS only offer a lib file with coff format, no omf format.

You cannot link to Microsoft libraries directly.  What you can do, however,
is load the desired functions dynamically at runtime via LoadLibrary() and
GetProcAddress().  This way, you also have the ability to write a single
executable that can dynamically determine at runtime whether the Unicode
functions are actually available before trying to use them.


Gambit
Technical Details
Message-ID: <437bb171@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!news.alt.net!msrtrans!msrn-in!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <4379743f@newsgroups.borland.com> <43798d80@newsgroups.borland.com> <4379d43d@newsgroups.borland.com> <aonjn152reu5to2st6ptftml5gomh74ojd@4ax.com> <437aaaa3@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,7b8ae1fb7a416306
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <4379743f@newsgroups.borland.com> <43798d80@newsgroups.borland.com> <4379d43d@newsgroups.borland.com> <aonjn152reu5to2st6ptftml5gomh74ojd@4ax.com> <437aaaa3@newsgroups.borland.com>
Subject: Re: how to use wide character symbols
Date: Wed, 16 Nov 2005 14:25:04 -0800
Lines: 23
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 68.69.17.41
Message-ID: <437bb171@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1132179825 68.69.17.41 (16 Nov 2005 14:23:45 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!news.alt.net!msrtrans!msrn-in!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail