Landon Cunningham wrote:

Ok I am trying to get the pnojpeg library working and I already asked
how to work with it but it just doesn't seem to work. I know I should
be including the pnoJpeg.h file in my code. Then have the prc
installed on my palm. Which I can see that the library seems to be on
the palm.

What are the .dll files for? I have read on the past posts that you
put them in the simulator directory to get the library working on
there.

I thought I assumed that I have installed everything correctly but
when I go to use the functions nothing seems to happen. I am trying to
write to a file stream and after the encoding should be done my file
remains empty.  So I thought, is the library actually working. I
installed my program on another palm that doesn't have the library and
I got the same results for when I actually had the library installed.
There was no indication or error that the library couldn't be used.
Which brings me back to I don't think I have the library installed
correctly.

I feel like such a pain and well quite stupid. I do apologize and I
appreciate all the help that everyone has been giving me.

Landon Cunningham


You have to find and open the lib. The lib should come with a sample code which shows you how to do it. If the find and open failed, you can show an error with FrmAlert if you like.

        FtrGet(sysFtrCreator, sysFtrNumProcessorID, &processor);
        if (sysFtrNumProcessorIsARM(processor))
        {
                error = pnoJpeg_OpenLibrary(&pnoJpegLibRef);
                if (error == errNone)
                        bPnoJpegLibOpened = true;
        }

        if (!bPnoJpegLibOpened)
        {
                error = SysLibFind(jpegLibName, &jpegLibRef);
                if (error != errNone)   // not already loaded; do it now
                        error = SysLibLoad(sysResTLibrary, jpegLibCreator, 
&jpegLibRef);
                if (error == errNone)
                        error = JpegLibOpen(jpegLibRef, jpegLibCurrentVersion);
                if (error == errNone)
                        bJpegLibOpened = true;
        }

Regards
Henk

--
-------------------------------------------------------------------------
  Henk Jonas                                            [EMAIL PROTECTED]
  Palm OS ® certified developer

  Please contact me, if you need an off-side contract worker.
-------------------------------------------------------------------------

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

Reply via email to