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 =
[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
, 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
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 *.
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
//
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