Knowledge Base

PRB: VerLanguageNameA() Not Exported in Win32s

PSS ID Number: 147876

Article Last Modified on 3/12/1999


The information in this article applies to:


This article was previously published under Q147876

SYMPTOMS

If you call VerLanguageName() from a 32-bit application running under Win32s, you will get an Undefined link error on VerLanguageNameA in Version.dll.

CAUSE

In Win32s, Version.dll does not export this function. In Windows NT and Windows 95, VerLanguageNameA is exported in both Version.dll and Kernel32.dll. In Windows NT, Version.dll forwards the export of VerLanguageName() to the export in Kernel32.dll. In Windows 95, Version.dll separately calls the function in Kernel32.dll.

RESOLUTION

Under Win32s, you can still use the VerLanguageName() function from your application because the function exists in Kernel32.dll. You will need to specify Kernel32.lib before Version.lib on your link line. Then your application will use the function from Kernel32.dll.

STATUS

This behavior is by design.

Additional query words: win32s gdi

Keywords: kbGDI KB147876
Technology: kbWin32s130c kbWin32sSearch