|
From: Per W. <pw...@ia...> - 2003-03-19 11:55:47
|
Among other things yes. Every resource in the resource file - string, menu, image, ... have a language and sub-language setting, i.e. English,US-English. But the resource is also a way to use graphical design tools to describe the graphical API of an application. The resource file allows any data that the resource editor needs to change to be separated from the manually edited source code of the application. A resource file might contain the same string etc. in multiple languages. The OS will then try to auto-select the language based on the users language settings in the OS. One other reason for resource files is that the same code may support a simple or advanced API. In the simplified API, some dialogs might be smaller, and with some 'advanced' fields removed. A third reason for resource files is that they allow customization, i.e. a program is delivered to different corporations, and each corporation gets the application with different look-and-feel, i.e. the colors, logos etc. are adjusted. Basically, a resource compiler takes a - normally text - xx.rc file and produces a binary xx.res file. That file is then appended to the executable file, and the windows API contains functions to look for resource data at the end of a exe or dll file. One way to support multiple languages of an application is to build the main exe without resources - or with only language-neutral resources. Then the project contains one dll file for each market. Uppon startup, the program selects which dll to load and use for resource lookup. /Per W On Wed, 19 Mar 2003, Ioannis Vranos wrote: > > -----Original Message----- > > From: Daniel Glenfield [mailto:sp...@ho...] > > Sent: Wednesday, March 19, 2003 1:04 PM > > To: iv...@em...; dev...@li... > > Subject: Re: [Dev-C++] Resource files > > > > > > By what type of dialog box do you mean modal or modaless? > > > > RC files can be used to store strings, control IDs etc. and > > are useful if > > you plan on selling your product in multiple countries as all > > you do is > > change the RC file - the source code remains the same. > > > So their purpose is internationalization? > > > > > Ioannis Vranos > > * Programming pages: http://www.noicys.freeurl.com > * Alternative URL: http://run.to/noicys > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Does your code think in ink? > You could win a Tablet PC. Get a free Tablet PC hat just for playing. > What are you waiting for? > http://ads.sourceforge.net/cgi-bin/redirect.pl?micr5043en > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |