467,074 Members | 1,123 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,074 developers. It's quick & easy.

Howto access .RC/.RES Ressource files with portable C++ code ( BCC,MSVC,GNU-C++,OpenWatcom)?

Hello !

Beginner's question:

Howto access .RC/.RES Ressource files with portable C++ code (
BCC,MSVC,GNU-C++, OpenWatcom) ?

I just wanna access "local language strings", so that I may replace the
..RC file to compile a version of my software for a different language.

Of course it is o.k. to use preprocessor commands !
Any free demo script available ?

I am using

free Borland C++ 5.5 - no ressource editor
MS Visual Studio .NET 2003 - built-in ressource editor
free OpenWatcom 11.c ( shipped with a ressource editior )
free Dev-C++ & MingW = GNU-C for Windows - no ressource editor

WeditRes
http://www.objectcentral.com/vide.htm
http://www.cs.virginia.edu/~lcc-win32/

Gnu-C++ with Linux

Do you know any other FREE ressource editors for Windows ?

Is it possible to write a common ressource file for Borland / Microsoft
/ OpenWatcom, and if so with which (free) ressource editor ? If so if I
just wanna access text strings ?

And how to get compatibility between the Windows compilers (
BCC/MSVC/Watcom/GNU C++) and Linux ( just GNU C++), with ressources ?

As I am a beginner, how and with what should I start ?

As Linux support ist just "second choice" a solution "portable for any
Windows compiler" is acceptable ( but a drawback, of course).

Sincerely
Rolf
--
/ / / Alone on the data highway...
/ / like on an allee in Hannover-Herrenhausen
/ / / The Hemmerling (R) WEB site - Rolf Hemmerling,Germany
/ / / http://www.hemmerling.com/

Jul 19 '05 #1
  • viewed: 6383
Share:
3 Replies
I just learned that there is
gettext
http://www.gnu.org/software/gettext/gettext.html
, which is supported natively by

wxWindows
http://www.wxwindows.org/manuals/2.4.2/wx460.htm
,

if I just wanna have local strings.

Do you like it, is it usual to use it ?

But of course, as I wanna support MFC / .NET frameworks, its o.k. to
look for a common way for accessing ressources with C++ on Windows platform.

As the mandatory GUI platform ist "QT"
http://www.trolltech.com/
, any suggestions ?

So internationalisation with gettext, but another .RC/.RES file for
MFC/.NET GUI, but no .RC/.RES file for all other GUI framworks ?

Sincerely
Rolf
--
/ / / Alone on the data highway...
/ / like on an allee in Hannover-Herrenhausen
/ / / The Hemmerling (R) WEB site - Rolf Hemmerling,Germany
/ / / http://www.hemmerling.com/

Jul 19 '05 #2
Rolf Hemmerling wrote:
I just learned that there is
gettext
http://www.gnu.org/software/gettext/gettext.html
, which is supported natively by

wxWindows
http://www.wxwindows.org/manuals/2.4.2/wx460.htm
,

if I just wanna have local strings.

Do you like it, is it usual to use it ?

But of course, as I wanna support MFC / .NET frameworks, its o.k. to
look for a common way for accessing ressources with C++ on Windows
platform.

As the mandatory GUI platform ist "QT"
http://www.trolltech.com/
, any suggestions ?


Qt has its own support for i18n. I suggest you use this.
See http://doc.trolltech.com/3.2/i18n.html
Jul 19 '05 #3
Rolf Hemmerling <he********@gmx.net> writes:
I just learned that there is
gettext [...]
if I just wanna have local strings.

Do you like it, is it usual to use it ?
Yes. gettext (libintl) is the de-facto i18n/l10n framework in the
free software world. It's very good, and it's easy to maintain
translatable strings and translations. There are several tools
available for translation work, and end-users can create/edit
translations without any messing with resource files.

One of the best features of gettext is the merging of new and changed
strings with existing translations. Tools such as Emacs po-mode allow
very easy updating of translations.
But of course, as I wanna support MFC / .NET frameworks, its o.k. to
look for a common way for accessing ressources with C++ on Windows
platform.
I don't know how resource files work, so I can't help here. It might
be possible to construct the resource file from the strings extracted
with xgettext. That's a question for a MS group.
As the mandatory GUI platform ist "QT"
http://www.trolltech.com/
, any suggestions ?


There's also Gtkmm, which is well worth investigating. It uses
gettext for i18n. It integrates well with the Standard Library.
--
Roger Leigh

Printing on GNU/Linux? http://gimp-print.sourceforge.net/
GPG Public Key: 0x25BFB848. Please sign and encrypt your mail.
Jul 19 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by BDob | last post: by
3 posts views Thread by Mike Gramelspacher | last post: by
3 posts views Thread by Jerry J | last post: by
6 posts views Thread by Abubakar | last post: by
13 posts views Thread by Tomás | last post: by
409 posts views Thread by jacob navia | last post: by
7 posts views Thread by jacob navia | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.