[AccessD] Another Chinese question

Stuart Sanders stuart at pacific.net.hk
Wed Jun 2 00:36:20 CDT 2004


Hi Rocky,

Hmmm 2 threads in a fortnight that I've read and responded to.  I guess
I'm almost back.

Living in a city where both traditional and simplex chinese characters
are commonly used I have dealt with this occasionaly.  Typically though
I develop in English as it is only the data entry that needs to be able
to support chinese.

I haven't tried doing msgbox in Chinese, but I would guess that the
problem is due to the following.  Windows comes with two sets of APIs
for most things.  One is ANSI and the other is Unicode.  These are
usually designated by A (ANSI) and W (Wide).  If you have the default
language set to a roman script language (English, French, German, etc)
then windows by default uses the ANSI APIs.  Likewise if you use a
language set that requires Unicode windows will switch to the Wide apis.
Now you can force this by progamatically calling the appropriate API at
runtime.  

For msgbox in theory what you need to do is call the MessageBoxW api.

I will have a play with this and see if I can get a test db working for
you and sent it via email.

Stuart

> -----Original Message-----
> From: accessd-bounces at databaseadvisors.com 
> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of 
> Rocky Smolin - Beach Access Software
> Sent: Wednesday, 2 June 2004 3:36 AM
> To: AccessD at databaseadvisors.com
> Subject: [AccessD] Another Chinese question
> 
> 
> Dear List:
> 
> I received the translations for the control captions and 
> messages boxes from by contact in Taiwan.
> 
> I have a routine which changes the captions of the labels and 
> command button in the OnOpen event of a form and it works beautifully.
> 
> However, I can't get the message boxes to display the Chinese 
> characters.  It displays ????? in place of the characters.  
> The translations appear in the table as squares.  That's ok.  
> If I copy a translation directly into the code, it shows as ??????
> 
> Does anyone know offhand how to get foreign characters to 
> display correctly in message boxes.
> 
> MTIA
> 
> Rocky Smolin
> Beach Access Software
> http://www.e-z-mrp.com
> -- 
> _______________________________________________
> AccessD mailing list
> AccessD at databaseadvisors.com
> http://databaseadvisors.com/mailman/listinfo/accessd
> Website: http://www.databaseadvisors.com
> 




More information about the AccessD mailing list