<alert comment="newbie">
did you reset the emulator after instaling HostFS?
I hadn't done that (forehead meet palm :-) ...
and now it seems to be "starting" to work. I trying to modify a
program VfsTest from Lonnon Foster's book, "Pro Palm OS Programming".
This test program indicates it found POSESlot1 as the volume name.
However, I'm fuzzy how to actually read a file. I tried putting a very
small file test.txt that just has three lines:
Line 1
Line 2
Line 3
in C:\Temp\test.txt and then use:
Err rc = VFSFileOpen(gVolRefNum, "test.txt", vfsModeRead, &fileRef);
I'm always getting rc=10766, which shows the message:
Invalid File Name
Unable to create file, because test.txt contains invalid characters.
I also tried just the filename "test" and putting this file in a
variety of subdirectories, including:
C:\Temp\PALM\
C:\Temp\PALM\Launcher
(PALM and PALM\Launcher subdirectories were created while VfsTest was
running)
Obviously I'm doing something wrong, or leaving something out. Help
appreciated!
On the 5.4 simulator, the VfsTest program works without
HostFS_emulator.prc being installed. Directories can be created, and
files can be created, written, and read back. However, I don't see how
to "map" this to the desktop drive so I can read an existing file (to
simulate a file on an SD card).
</alert>
--
For information on using the PalmSource Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/