At 8:25 PM -0400 6/29/02, Brian Smith wrote: >I'm working on a feature to log session text to a text file on VFS (as >well as to a DOC database, which I already have done). I currently have >it working well by creating a directory under /PALM and writing a file >with a .log extension in that. What I'm wanting to accomplish, though, is >some interoperability with Palm OS and desktop apps that would be able to >read these (plain text) files. Is there anything I should be changing as >far as the file extension or directory, or is what I'm currently doing >fine? There's not exactly any default directory for text files :-)
Actually, there might be a default directory for .log file. Another app might have already registered one for that VFS card. So you should check whether the default directory has been registered (VFSGetDefaultDirectory), honor that location if it exists, and register/use your own if it doesn't (VFSRegisterDefaultDirectory). On the desktop versions that support VFS cards, if you drop/doubleclick a PDB and request that it be installed on the card, it will appear in /PALM/Launcher. I hope/believe, but HAVE NOT VERIFIED, that for other filetypes/extensions, a simple card-install will place those other files in their respective default directories, too. I think that the typical user, when installing a VFS-aware app along with VFS-only files (text, JPEG, custom file format), will expect to be able to install the whole shooting match at once. This means you're going to have to prepare your VFS card during the Hotsync. Isn't there a launch code or event that's sent to an app right after installation? This would be the time for you to call VFSGet/RegisterDefaultDirectory. But this is seat-of-the-pants, check the docs first. ---- Hal Mueller [EMAIL PROTECTED] Mobile Geographics LLC http://www.mobilegeographics.com/ Seattle, Washington (206) 297-9575 MapTap public test now underway! http://www.mobilegeographics.com/maptap/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
