Date: Wed, 23 Mar 2005 04:38:20 +0000 (GMT) From: Praveen Patil Subject: Re: Help find the attached bitmap.I was out of office thats why the delay. Regards, Praveen Greg Haerr wrote: I never had the time to implement MessageBox, you will need to create a window, then call mainloop waiting for a button to be pressed... Can you please send me the original bitmap file that caused the bug in Microwindows, so that I can fix it? Regards, Greg ----- Original Message ----- From: Praveen Patil To: Greg Haerr Sent: Wednesday, March 09, 2005 3:53 AM Subject: Re: Help Hello Greg, I did.... width/4 .... One more thing is there any alternative call for MessageBox() function...in Microwindows. Since I need to popup some messages in my application...MessageBox function is not working on Microwindows. Regards, Praveen Greg Haerr wrote: What did you do to fix the problem? Greg ----- Original Message ----- From: Praveen Patil To: Greg Haerr Sent: Tuesday, March 08, 2005 8:44 PM Subject: Re: Help Hi Greg, Thanks for the help. Problem is fixed. Thanks again, Praveen Greg Haerr wrote: Yes, I can see the problem now. The problem is either: 1) the width of the bitmap isn't properly being set, or 2) the "filler" bytes at the end of the bitmap aren't aligning properly. I think its #2, and that microwindows is thinking that there's more bytes or less at the end of each line. You can fix this by either: fixing the loadBMP() routine in devimage.c, or, converting a bitmap to an even 4-byte size in width (that is, a width divisible by 4) Try that and see what happens. Greg : Hi Greg, : Thankss for the reply. : Currently I am running the application on Desktop.But it fails to work on the desktop.I am using microsoft paint to convert the bitmaps from 256 color to 16 color. : With this mail I have attached the screenshot how it looks after running the application on desktop.Also I have attached the original bitmap file. : I will try out your sujjestion.meanwhile if you are able to load this bitmap please let me know. : : Thanks again. : Praveen : : Greg Haerr wrote: : The problem is very likely that the routine that loads the 256 color : bitmaps doesn't support the encoding that you're giving it. : : This decoding is in the routine LoadBMP() in devimage.c for version : 0.90. We will need a dump of the exact .bmp file to see for certain : what the problem is. : : Does this work on the desktop, and fail only on the target system? : What is the target system? : : Regards, : : Greg : ----- Original Message ----- : From: Praveen Patil : To: greg@censoft.com : Sent: Tuesday, February 15, 2005 6:44 AM : Subject: Help : : : Hi Greg : I am trying to load a 256 color bitmap file in Microwindows but it is not loading correctly( you see the bitmap file in 4 portions).I am using win32 APIs. : : If I save the same file as 16 color bitmap format then it loads perfect. : : Can you tell me what could be the problem when I load the same file in 256 color bitmap. : : Thanks in Advance. : Praveen : : : Yahoo! India Matrimony: Find your life partner online. : : : Yahoo! India Matrimony: Find your life partneronline. ---------------------------------------------------------------------------- ---- filename="tvremotenormal.bmp"