[Dev-C++] wxMemoryFSHandler content dir
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: kalb <ka...@em...> - 2006-12-14 22:21:39
|
Hi guys,
I'm using wxMemoryFSHandler to load in memory a variable number of images from
a user selected location, resize them appropriately and display them in a
wxHtml window.
All works fine, but once the html page is correctly displayed I need to clear
the memory filesystem content. So I tried to do it looping on the files
retrieving the first file name using FindFirst(), i.e.:
------------ CODE -------------------------
wxMemoryFSHandler* MFSH = new wxMemoryFSHandler;
wxFileSystem::AddHandler(MFSH);
// fill MFSH with the images and display them
......
// all works fine
wxString FileToDelete = MFSH->FindFirst("*");
----------- END CODE --------------------
Now FileToDelete is empty!! I tried also
MFSH->FindFirst("*", wxFILE);
MFSH->FindFirst("*.*");
MFSH->FindFirst("*.*", wxFILE);
but FileToDelete is always empty.
Any idea?
Thnks in advance.
kalb
|