Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Community » Newbie corner » StaticImage cannot show BMP file
Re: StaticImage cannot show BMP file [message #43610 is a reply to message #43609] Fri, 12 September 2014 15:33 Go to previous messageGo to previous message
jerson is currently offline  jerson
Messages: 202
Registered: June 2010
Location: Bombay, India
Experienced Member

Hello Koldo and Jibe

I have resolved the issue.

This is the original structure in bmphdr.h
struct BMP_FILEHEADER {
	word    bfType;
	dword   bfSize;
	word    bfReserved1;
	word    bfReserved2;
	dword   bfOffBits;

sizeof(BMP_FILEHEADER) shows 16!!!

So, I made the following change
	word   bfOffBits;

Now, I get sizeof(BMP_FILEHEADER) as 14 which is the expected value

With this change, BMP files are being displayed in Controls4U_Demo. Can some of you experts please check what's causing this behaviour??

Regards
Jerson


[Updated on: Fri, 12 September 2014 15:34]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: From XSD to XML
Next Topic: HowTo bind StaticImage to SQL
Goto Forum:
  


Current Time: Sun Aug 24 18:58:07 CEST 2025

Total time taken to generate the page: 0.04000 seconds