Cross-platform resource API

Eric Pouech pouech-eric at wanadoo.fr
Tue Nov 11 14:08:33 CST 2003


Jean-Claude Gervais wrote:
> Hello,
> 
> I'm currently porting a Windows application to the Mac and Linux.
> 
> I've got many details worked out but the one that I am still researching
> is how to load resources like strings and bitmaps.
> 
> What I would like to do is distribute the resources the application uses
> as a .RES file that I would then manipulate with something like the
> LoadResource function.
> 
> I have read that work has been done in the Wine project to make it able
> to be used by other projects like ReactOS and Cygwin.
> 
> Is the Wine source-code structured in such a way that it would be
> possible to extract the LoadResource function and do this?
> 
> Is there a simpler way?
if you want your app to be a winelib app, then this is not an issue, 
you'll be able to directly use any win32 api you want (starting with 
LoadResource & LoadString), as well as putting the resource itself into 
the executable.
See the doc for the details to build a winelib app.
A+


-- 
Eric Pouech




More information about the wine-devel mailing list