So far I have made this code:
Code: Select all
wxDirDialog dialog(this, "Folder containing ZIPs");
if(dialog.ShowModal() == wxID_OK)
{
wxDir::GetAllFiles(dialog.GetPath(), &zips, "*.zip");
std::unique_ptr<wxZipEntry> entry;
wxFFileInputStream trash(zips[0]);
wxZipInputStream zip(trash);
entry.reset(zip.GetNextEntry());
if(entry.get())
{
wxImage pic(entry->MagicalStream(), wxBITMAP_TYPE_JPEG);
}
}