This archive loader can be used to read resources from Windows PE and PE32+ binaries. This is useful for extracting icons and other data from exe and DLL files in a cross platform way, or perhaps it isn't. I don't really have a use for it, but it was fun to write!
/*
The following code shows how to load a bitmap from one of the standard
executables that comes with Windows XP/2k/Vista and display it in the GUI.
*/
// create an instance of the loader and add it to the filesystem
io::CArchiveLoaderRes* resLoader = new io::CArchiveLoaderRes(fs);
fs->addArchiveLoader(resLoader);
// We created it with new, so we must drop() when finished with it.
resLoader->drop();
// Now we can add an executable to the filesystem as an archive.
// By default we ignore the paths which may ge
fs->addFileArchive("c:\\windows\\system32\\inetcpl.cpl");
// now let's extract a bitmap and add it to the GUI
guienv->addImage(driver->getTexture("4474.bmp"), core::vector2di(0,0));
This is going straight to my code library...
and its well commented also
C++ is not the Magdalena...it takes patience...shes like the well aged prostitute, it takes years to learn her tricks! she is cruel...laughs at you when you are naked...
Life of a programmer == Const abuse