| Microsoft Layer For Unicode |
Article Index for Microsoft |
Shopping Unicode |
Website Links For Microsoft |
Information AboutMicrosoft Layer For Unicode |
| CATEGORIES ABOUT MICROSOFT LAYER FOR UNICODE | |
| microsoft apis | |
| layer for unicode | |
| unicode | |
|
Microsoft describes it as providing "a layer over the Win32 API on Windows 95/98/ME so that you can write a single Unicode version of your application and have it run properly on all platforms." {Link without Title} Previously, software developers had to either provide two separate versions of an application, or perform complex string translations and API decisions at runtime. AVAILABILITY The MSLU was announced in March 2001 , and first available in the July 2001 edition of Microsoft's Platform SDK, which is arguably long after the peak popularity of Windows 95/98/ME. It had a Codename of ''Godot'', which is a reference to the play '' Waiting For Godot '' (centered around the failure of a man named "Godot" to appear and the endless wait for him), because it was felt to be long overdue ( source ). HOW IT WORKS Normally, the Win32 API provides both A (ANSI) and '''W''' (Wide-character) versions of most functions. On Windows 95/98/ME, only the ''A'' versions are implemented and attempting to call a ''W'' version will fail with an error code that indicates that function is unimplemented. On Windows NT/2000/XP/2003, both the ''A'' and ''W'' versions are implemented (however the operating system generally only internally implements the ''W'' version natively, and the ''A'' version is usually a translation Thunk to the ''W'' version). By adding the UNICOWS.LIB to the link command-line before KERNEL32.LIB, ADVAPI32.LIB, or any other supported Win32 system link library, the linker will resolve referenced symbols with the one provided by UNICOWS.LIB instead. When a wide-character function is called for the first time at runtime, the function stub in UNICOWS.LIB first receives control and decides if it is running on a Windows 95/98/ME system:
Because of this technique, when an application is linked against MSLU, only Windows 95/98/ME systems will need the UNICOWS.DLL at runtime, and on all other operating systems there is only a slight performance penalty for the first function call. EXTERNAL LINKS
;Open Source alternatives
|
|
|