Hi!

I have some problem with the VFSDirEntryEnumerate function.... I'd like to
list the content of the memory stick...

I use the folowing code :

volIterator = expIteratorStart;
while(volIterator != expIteratorStop)
       {
           if((err = VFSVolumeEnumerate(&volRefNum, &volIterator)) ==
errNone)
                {
                     //process using volRefNum
                     err = VFSFileOpen(volRefNum, "/Palm", vfsModeRead,
&dirRef);
                     dirIterator = expIteratorStart;

                     while(dirIterator != expIteratorStop)
                          {
                            if((err = VFSDirEntryEnumerate(dirRef,
&dirIterator, &info)) == errNone)
                                  {
                                    //At the VFSDirEntryEnumerate function
the program halt...
                                  }
                         }

                    err =  VFSFileClose(dirRef);
                }
           else
                {
                    //Error process
                    FrmAlert(VolumeErrorAlert);
                }
       }

I read the programmers manual, but in the manual I saw an example which
nearly same...

please help.

thanx

regards
Xor


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

Reply via email to