Next Previous Up Top Contents Index

4 OLE Automation

4.10 Internationalization

Many of the OLE Automation functions accept an optional locale: option that can be used for internationalization. Usually you would not specify it, instead allowing the current user's default locale to be adopted as the default.

If you do need to specify a particular language, construct a locale value with the function MAKELCID in the Win32-Common library (see Win32 API Libraries in the C FFI and Win32 reference volume). See also MAKELANGID and the associated $LANG-... and $SUBLANG-... constants. For example, you could do:

define constant $british-english-locale = 
  MAKELCID(MAKELANGID($LANG-ENGLISH,$SUBLANG-ENGLISH-UK),
           $SORT-DEFAULT);


OLE, COM, ActiveX and DBMS Reference - 31 MAR 2000

Next Previous Up Top Contents Index