The information in this article applies to:
SUMMARY
In Win32-based applications, LoadLibrary() returns an HINSTANCE and
GetLastError() is used to determine the error. If HINSTANCE is NULL, the
DLL was not successfully loaded. If the HINSTANCE is not null, the DLL was
loaded and the usage count was incremented; however, you may still see that
the last error was set if the DLL is a 16-bit DLL.
MORE INFORMATION
In order to see all possible error returns, you'll need to call
SetLastError(0) before calling LoadLibrary(). If HINSTANCE is not NULL and
GetLastError() is ERROR_BAD_EXE_FORMAT, the DLL is a 16-bit DLL. You can
access the DLL resources and/or printer APIs from your Win32-based
application.
REFERENCESFor more information on how to get resources from a 16-bit DLL, please see the following article in the Microsoft Knowledge Base: Q105761 Getting Resources from 16-bit DLLs Under Win32sFor more information on Universal Thunk, please see Chapter 4 of the Win32s Programmer's Reference. Additional query words:
Keywords : kbWin32s |
Last Reviewed: January 14, 2000 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |