Using binary resource files

To compile binary resource files, use the command-line wxrc utility. It takes one or more file parameters (the input XRC files) and the following switches and options:

For example:

  % wxrc resource.xrc
  % wxrc resource.xrc -o resource.xrs
  % wxrc resource.xrc -v -c -o resource.cpp

Note

XRS file is essentially a renamed ZIP archive which means that you can manipulate it with standard ZIP tools. Note that if you are using XRS files, you have to initialize the wxFileSystem ZIP handler first! It is a simple thing to do:

  #include <wx/filesys.h>
  #include <wx/fs_zip.h>
  ...
  wxFileSystem::AddHandler(new wxZipFSHandler);

ymasuda 平成17年11月19日