Trouble opening BMP files with Image Viewer

G

Guest

Hi!

I´m developing an image compiler; it takes as input an image description
and returns as output a BMP file that fullfils that description.
I´m having troubles when opening those files with the Image Viewer (in
Spanish, "Visor de imágenes y fax de Windows XP"). Concretely, this program
returns the message "error in drawing".
The strange thing is that the BMP file seems to be correct, because I can
open it with MS Paint and also I can paste it as an Image within a Word
document.

So, do you have some solution or advise about this problem? Has anybody the
same problem?
I will thank any answer to this question, because this project has to be
finished before June, 1st.

Yours sincerely.
 
Y

Yves Alarie

Make sure that image association functions are working properly with XP.

Click on Start and click on Run. In the opening textbox, type in the
following (or copy and paste the following):

REGSVR32 SHIMGVW.DLL
and press Enter key.
This will take a second to run. Now try opening the BMP file.

"Estudiante de Compiladores II, UC3M"
 
G

Guest

Hi Yves,

First of all, I want to thank you for answering my question.

I have done what you said, but it didn´t work.

Do you know any other solution for this trouble? I´m sure that the drawing
is correct, because I can open it normally in Microsoft Paint or as an image
included in a Word document.

I think that the problem could be that the BMP header is considered in
different ways from one program to another.

I do thank you another time for your patience! :)
 
Y

Yves Alarie

If you have a BMP, Windows Picture and Fax Viewer will open it. Have you
tried just taking a BMP file and opening directly instead of opening it via
the program you are setting? Does it open?
If you try opening a JPG, does it open?
First we want to make sure that your computer is capable of directly opening
a BMP or JPG file directly with Windows Picture and Fax Viewer (WPFV).
If you try this, you will notice a difference. WPFV will open a JPG in a
window, however it will open a BMP in a "slide show" window mode. This may
be were your problem is.

"Estudiante de Compiladores II, UC3M"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top