Re: Help on VFSDirEntryEnumerate is urgently [tetsuo Nagamatsu]

2004-07-01 Thread Helmut A. Bender
Am Donnerstag, 1. Juli 2004 04:55 schrieb Tatsuo Nagamatsu: I have changed the size to 256 but still the same result. anyway the snippet of code below is taken from Palm OS Reference Manual, but it doesn't work either. Char *fileName = (Char*) MemPtrNew(256); info.nameBufLen =

Re: Help on VFSDirEntryEnumerate is urgently [tetsuo Nagamatsu]

2004-07-01 Thread Chris Apers
[EMAIL PROTECTED] To: Palm Developer Forum [EMAIL PROTECTED] Sent: Thursday, July 01, 2004 10:54 AM Subject: Re: Help on VFSDirEntryEnumerate is urgently [tetsuo Nagamatsu] Am Donnerstag, 1. Juli 2004 04:55 schrieb Tatsuo Nagamatsu: I have changed the size to 256 but still the same result

Re: Help on VFSDirEntryEnumerate is urgently [tetsuo Nagamatsu]

2004-07-01 Thread Dave Lippincott
, 2004 5:56 AM Subject: Re: Help on VFSDirEntryEnumerate is urgently [tetsuo Nagamatsu] You can't use sizeof() on a pointer allocated with MemPtrNew use MemPtrSize instead. But as you are enumerating i don't think you need to allocate fileName each time. Better and faster to use Char fileName

re: Help on VFSDirEntryEnumerate is urgently [tetsuo Nagamatsu]

2004-06-30 Thread Tatsuo Nagamatsu
I have changed the size to 256 but still the same result. anyway the snippet of code below is taken from Palm OS Reference Manual, but it doesn't work either. Char *fileName = (Char*) MemPtrNew(256); info.nameBufLen = sizeof(fileName); Do you know the size of fileName? This type is Char *.

re: Help on VFSDirEntryEnumerate is urgently [tetsuo Nagamatsu]

2004-06-26 Thread Victor .
Dear Tetsuo, I have changed the size to 256 but still the same result. anyway the snippet of code below is taken from Palm OS Reference Manual, but it doesn't work either. FileInfoType info; FileRef dirRef; UInt32 dirIterator; Char *fileName = (Char*) MemPtrNew(256); // should check for err //

Re: Help on VFSDirEntryEnumerate is urgently [tetsuo Nagamatsu]

2004-06-26 Thread Jan Slodicka
Hi Victor, I would say that you should read the VFSDirEntryEnumerate description and analyze the error returned. Simply saying that there is an error is not enough... Which error? Did you compare the results to some file manager? Does it happen on other directory as well? etc. BTW if your