LoadImage() behaves differently by not loading some .bmp files on Windows NT (329092)
The information in this article applies to:
- Microsoft Platform Software Development Kit (SDK) 1.0
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.
STATUSThis behavior is by design.
Modification Type: | Minor | Last Reviewed: | 5/10/2006 |
---|
Keywords: | kbDSWGDI2003Swept kbprb KB329092 |
---|
|