|
From: Jean-Claude G. <jc....@vi...> - 2003-11-10 15:38:07
|
Ah! Windres! That's what i was looking for. Although from what you say, it may not be possible. I just thought that since the resource compiler can build .RES files that it might have functions to read resources from them, and hopefully those could be cross-platfom. Does anyone have any info on that? Thanks for the info. On Mon, 2003-11-10 at 10:28, Mikael Aronsson wrote: > Hi ! > > I don't think there are any functions in MinGW to handle resources, this is > all done by calling win32 api functions, so there is no source code > available for those, even though there is a free resource compiler available > (windres I belive) as an alternative to MS rc.exe. > > Resources work a bit different than on the old 16 bit days, today all > strings in a .res file are in unicode format, and you cannot replace the res > portion of an exe, you have to use the linker to "relink" the application to > get the resources into the exe file, but Windows NT and later has API > functions to both access and replace/create new resources. > > Mikael > > ----- Original Message ----- > From: "Jean-Claude Gervais" <jc....@vi...> > To: <min...@li...> > Sent: Monday, November 10, 2003 3:56 PM > Subject: Re: [Mingw-users] Resource compiler suitable for cross-platform? > > > > On Mon, 2003-11-10 at 09:28, Mikael Aronsson wrote: > > > .RC files are only supported on win32, and all the resource are loaded > using > > > a win32 specific API, but it would be possible to make some kind of > > > "resource" management that works cross platform, but I don't know of any > > > working solution in existence, some GUI's like Fltk and FOX save > "resources" > > > as binary data in the executable. For example FOX has a tool that > converts a > > > any file into a .c/.h file with a byte array representing the file > contents. > > > > Hi Mikael! > > > > I understand. > > I expected that that would be the case, but what I am wondering is this; > > are the resource functions grouped enough so they could be compiled > > separately, and if so, are they generic enough so they would compile on > > other platforms? > > > > I'm pretty sure many programmers out there are in the same situation I > > described and would find it really useful to be able to manipulate > > resources on platforms other than Windows. > > > > The biggest problem I can foresee is that resources must usually be > > bound to the executable. > > > > This may pose the greatest problem on other platforms, because > > executables tend to have very different formats on other platforms. > > > > I wrote (many years ago) some routines that were able to extract strings > > from a .RES file that we distributed along with a real-mode DOS > > application, because we had hit a problem with string literals > > exhausting the data segments of the app, so I figure there might already > > be some code in the MinGW project that can walk .RES file structures > > whether they are bound onto an executable or not, but since I am not a > > maintainer for this project, my talk is all conjecture up to this point. > > > > Thanks. > > > > > > > > > > ------------------------------------------------------- > > This SF.Net email sponsored by: ApacheCon 2003, > > 16-19 November in Las Vegas. Learn firsthand the latest > > developments in Apache, PHP, Perl, XML, Java, MySQL, > > WebDAV, and more! http://www.apachecon.com/ > > _______________________________________________ > > MinGW-users mailing list > > Min...@li... > > > > You may change your MinGW Account Options or unsubscribe at: > > https://lists.sourceforge.net/lists/listinfo/mingw-users > > > > ------------------------------------------------------- > This SF.Net email sponsored by: ApacheCon 2003, > 16-19 November in Las Vegas. Learn firsthand the latest > developments in Apache, PHP, Perl, XML, Java, MySQL, > WebDAV, and more! http://www.apachecon.com/ > _______________________________________________ > MinGW-users mailing list > Min...@li... > > You may change your MinGW Account Options or unsubscribe at: > https://lists.sourceforge.net/lists/listinfo/mingw-users |