Klemen Dovrtel schrieb:
I would like to create a file on sd card, but i always get a vfsErrVolumeBadRef error. What could be wrong?I tried this, but i never get a "vfsErrVolumeBadRef" error: Char* filename = "/helloworldd.txt"; for(UInt16 i=0; i<1000;i++) { error=VFSFileCreate(i, filename); if(error==expErrNotOpen) { FrmCustomAlert(OpozoriloAlert,"expErrNotOpen",NULL,NULL); } if(error==vfsErrBadName) { FrmCustomAlert(OpozoriloAlert,"vfsErrBadName",NULL,NULL); } if(error==vfsErrFileAlreadyExists) { FrmCustomAlert(OpozoriloAlert,"vfsErrFileAlreadyExists",NULL,NULL); } if(error==vfsErrVolumeBadRef) { FrmCustomAlert(OpozoriloAlert,"vfsErrVolumeBadRef",NULL,NULL); } if(error==vfsErrNoFileSystem) { FrmCustomAlert(OpozoriloAlert,"vfsErrNoFileSystem",NULL,NULL); } }
Hi Please read the Programming manual carefull !!! The procedure for writing a file need more preparation !! I am busy at the moment, but tomorrow I can send you a piece of sample code. With best regards Siegmar. -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
