Saving images in Zire 72

2005-05-30 Thread Christiano Weirich
Hi. I'm working in a application that captures a image and save it in a SD card. The image is captured successfully and I can use the resulting bitmap with WinDrawBitmap, then I save it to the card. But, when I access it (via the image viewer of PalmOS) it appears as a corrupted image. I've tried

Jpeglib

2005-05-23 Thread Christiano Weirich
I´m trying to write a .jpg file in the memory card of a palm, but the resulting image is all distorted. The function to write is as follow: JpegLibCreateImageDescrPtr(jpegLibRefNum, &imageJPG, 320, 240, 1, captureInfo.pInicio); JpegLibCreateDataVFS(jpegLibRefNum, &dataJPG, fileP); erro = JpegLibWr

JpegLib

2005-05-23 Thread Christiano Weirich
I´m trying to write a .jpg file in the memory card of a palm, but the resulting image is all distorted. The function to write is as follow: JpegLibCreateImageDescrPtr(jpegLibRefNum, &imageJPG, 320, 240, 1, captureInfo.pInicio); JpegLibCreateDataVFS(jpegLibRefNum, &dataJPG, fileP); erro = JpegLibWr

Photo capture problem

2005-05-19 Thread Christiano Weirich
Directly to the matter, here is my code (almost exactly the same of CameraSample.c): -the capture function: void CapturaImagem( ) { Err erro = errNone; CamLibBitmapInfoType info; CamLibCaptureType capture; CamLibSettingType captureFormat; PhotoCaptureInfo captureInfo; capt

Re: VFSFileOpen error

2005-03-09 Thread Christiano Weirich
Thanks, Henk. That was indeed a big mistake of mine. Thanks again for your help. "Henk Jonas" <[EMAIL PROTECTED]> escreveu na mensagem news:[EMAIL PROTECTED] > Christiano Weirich wrote: > > > Hi, Greg. > > > > Yes, I checked it. I´m using the function

Re: VFSFileOpen error

2005-03-09 Thread Christiano Weirich
Hi, Greg. Yes, I checked it. I´m using the function like that: l_error = VFSFileOpen(volRefNum, filename, vfsModeReadWrite, fileP); volRefNum has the value 1 (the same value is successfully used in another function calls) filename has the string "prfbkp.txt" (I tried using the full path of some

VFSFileOpen error

2005-03-08 Thread Christiano Weirich
When I call VFSFileOpen, it returns the sysErrParamErr error. Any ideas about what could be the problem? Thanks, Christiano. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

No valid DrawWindow

2003-10-03 Thread Christiano Weirich
Hello. I have this code in my app, but using the debug rom, in the line where I call FldDrawField, I get an error saying that´s no valid DrawWindow for something to be drawn. The function is the following: FieldPtr SetFieldTextFromHandle( UInt16 fieldID, MemHandle txtH ) { MemHandle oldTxtH;

CTS Error

2002-02-22 Thread Christiano Weirich
Hello there!! I tried posting this in comm-dev-forum but got no response, so I´m doing it here too. I´m developing an application that makes serial communication between a Palm and a PC, and when using SrmReceive, it returns a serErrTimeoutErr. The PalmOS Reference says that it only happens when