XRS-files with embedded bitmaps resources don't work Topic is solved

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
Earned a small fee
Earned a small fee
Posts: 11
Joined: Thu Nov 30, 2006 6:15 pm

XRS-files with embedded bitmaps resources don't work

Post by pkullmann » Thu Nov 30, 2006 6:23 pm

Is it right, that XRS-files with embedded bitmaps don't work anymore (2.7.x and up)?

As far as I was able to see, the problem is that wxZipInputStream doesn't support seeking anymore. But that's exactly what wxImageHandler::CallDoCanRead wants to do, when trying to load a bitmap resource. The WXWIN_COMPATIBILITY_2_6 flag does not help either, because the specific wxZipInputStream contructor necessary for this to work is not used anymore.

Is there any other way I can use a resource archive for bitmaps??

Super wx Problem Solver
Super wx Problem Solver
Posts: 373
Joined: Fri Nov 03, 2006 2:00 pm

Post by stahta01 » Fri Dec 01, 2006 11:52 am

It is fixed in CVS Head; or at least a similar issue is.

If using 2.8rc1 upgrade these files.

Patches to wxWidgets 2.8.0rc1 (CVS Tag WX_2_8_0_rc1):
Fix to Bitmaps are not loading in toolbars (resource archive).
Upgrade /src/common/fs_arc.cpp to CVS version 1.5 [Needed by Window Users]
Upgrade /src/xrc/xmlres.cpp to CVS version 1.102

Tim S

Post Reply