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.