On January 19, 2005 4:35 am, Haider Iqbal wrote:
> I have Downloaded your JPEGView Library from the link below:
> http://www.marginsoftware.com/attachments/JPEGView-1.2.zip

JPEGView is an application - not a library.  JPEGView uses an ARMlet from the 
following port of the Independant JPEG Group's JPEG decoder/encoder.

 http://www.dp.mcw.edu/palmImaging/jpegArmlets.zip

> âErr VolumeBad Ref draw JPEG MainForm.c:72â after that another Dialog Box
> apper containing the following information : â MainForm.c:75 draw JPEG
> Unable to Open file.â

ErrVolumeBadRef means that either you do not have a memory card inserted, or 
the memory card you had open the last time you ran JPEGView is no longer a 
valid target.  The easiest way, unfortunately, to clear this up, is to delete 
the preferences for JPEGView using a tool such as Filez.

Note that JPEGView has been discontinued and development halted.  It was never 
really intended as a... fully stable utility application.  It was developed 
for internal use - to learn how to use the JPEG ARMlet.  Because I lack 
CodeWarrior, I can not re-compile the ARMlet to debug problems there.

It would be very nice if someone with more knowledge than I would port the 
CodeWarrior project over to PODS...

> Now firstly please tell me that how can I fix this problem or provide any
> files needed to fix the problem.

You'll need to write your own application which includes the ARMlet (jpeg.arm 
in the Rsrc directory) and you should use my updated code (see some of my 
recent posts).

> The second thing is that I am developing an application that is a Directory
> to Store Contacts of different Person. I want to show the images of those
> persons that are stored in the directory, Please tell me in the downloaded
> zip file from the above link which files I can use to accomplish my task.

Using my updated code you will need to rewrite drawJPEG to lock down a 
resource or database record (or accept a pointer and data size) and rewrite 
myFileReader to use this locked pointer to read from, instead of VFSFileRead.

I hope this helps you along a bit,
 Matthew Bevan

-- 
Matthew Bevan, Margin Software
 - Re-inventing the wheel, every time.

Finagle's Seventh Law:
        The perversity of the universe tends toward a maximum.

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please 
see http://www.palmos.com/dev/support/forums/

Reply via email to