This site is no longer active and is available for archival purposes only. Registration and login is disabled.

GapiVFS - virtual file system


GapiVFS - virtual file system

Postby Newbie » Feb 3, 2005 @ 11:40am

Newbie
 


Postby vince_mad » Feb 4, 2005 @ 1:59pm

Hi,
I tried to use GapiVFS a few weeks ago and found it quite easy to use.
Here's the code I'm using (there may be a better way, but it works):

VFS_File = new CGapiVFS();
VFS_File->CreateVFS(tcFile);
//tcFile is the absolute path to your VFS file.
//Then to load an image from the VFS:
pSurface->CreateSurface(GDSURFACE_SYSTEMMEMORY,VFS_File,TEXT("/file.jpg"));

So you see it is quite simple!
I think I posted a thread about it few weeks ago, I was wondering how to use VFS to store wav file and then read them. You might find it usefull. Search for threads that contain "VFS sound" in the GapiDraw forum.
Some more info that are quite important and can avoid some time wondering why it doesn't work:
- don't forget the "/" before the name of your file when you're loading it (it's written in the doc)
- It appears that VFS is case sensitive, so if you store a file called "File.jpg" and try to load a "file.jpg", it won't work.

Hope this helps.
Vincent.
User avatar
vince_mad
pm Member
 
Posts: 136
Joined: Mar 30, 2004 @ 7:40pm
Location: Paris, France


Postby dan.p » Feb 4, 2005 @ 7:48pm

dan.p
pm Member
 
Posts: 89
Joined: Jan 6, 2005 @ 6:49am


Postby xavier69 » Feb 5, 2005 @ 10:22pm

Being able to enumerate files in a given directory inside a VFS would be awesome. I'm not sure if you can do this now, but it'd be a welcome addition if you can't.

Johan, is this possible?
John Schisler
CTO / Chief Programmer

The PDA Initiative
http://www.pdainitiative.com
xavier69
pm Member
 
Posts: 12
Joined: Oct 21, 2004 @ 6:47pm


Return to GapiDraw


Sort


Forum Description

The Cross-platform Graphics SDK for Palms, Pocket PCs, Symbian Devices, and Stationary PCs.

Moderators:

sponge, Johan

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

cron