Microsoft KB Archive/329092

= LoadImage behaves differently by not loading some .bmp files on Windows NT =

Article ID: 329092

Article Last Modified on 5/10/2006

-

APPLIES TO


 * Microsoft Platform Software Development Kit-January 2000 Edition

-



This article was previously published under Q329092



SYMPTOMS
When you use the LoadImage function to load .bmp files, some files may not load on Windows NT-based systems. Generally, these files load on computers that are running Microsoft Windows 95, Windows 98, and Windows 98 Second Edition.



CAUSE
On Windows NT-based systems, LoadImage performs stricter validation of the header information in the .bmp file. If the header information for the .bmp is not consistent with the actual image attributes, Windows NT platforms may not load the image. This generally occurs when an application has saved a .bmp file and incorrectly calculated the image size that is stored in the header.



RESOLUTION
The best solution to this problem is to fix the header information in the .bmp file so that it accurately describes the image. If you cannot change the images themselves, you cannot use LoadImage, and you must write your own code to load the file.



STATUS
This behavior is by design.



MORE INFORMATION
For additional information about how to load and work with .bmp files, click the article number below to view the article in the Microsoft Knowledge Base:

94326 SeeDIB.exe Shows 16 and 32 Bits-Per-Pel Bitmap Formats

Keywords: kbdswgdi2003swept kbprb KB329092

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.