473,326 Members | 2,102 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

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
3 6725
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: BDob | last post by:
If to write portable code, I want to have "selective compiling." I am not sure if this is the right term. Basically it should work like this: #define WIN32_COMPILE class MyClass { void...
1
by: PrisNo6 | last post by:
I have some old code locked in two Access 97 files where I lost the mdw file and the pid do to system crashes. Can someone refer me to a commercial vendor who can crack these files? - Regards -...
3
by: Mike Gramelspacher | last post by:
Hello, I have an Access 2000 database that I copied to a new computer with Access 2003. Access 2003 says the file is in Access 2000 file format. I made some changes to the Access 2000 file...
3
by: Jerry J | last post by:
Hi, My asp.net application must access a file that can be anywhere on the server's LAN. I am having a problem because the server, doesn't have access to files that are not on the server's local...
6
by: Abubakar | last post by:
Hi, we are finding out ways in which we could develop libraries that could be written in c++ in a way that we can use them in windows, linux, and mac os. We want to write portable code, so that it...
13
by: Tomás | last post by:
Let's start off with: class Nation { public: virtual const char* GetName() const = 0; } class Norway : public Nation { public: virtual const char* GetName() const
5
by: marcus6 | last post by:
Howto access xmlHttp.responseText as document.getElementByTagName ? If I access a .html page through the xmlHttp, how can I use the functions .getElementsByTagName and .getElementById on the data...
409
by: jacob navia | last post by:
I am trying to compile as much code in 64 bit mode as possible to test the 64 bit version of lcc-win. The problem appears now that size_t is now 64 bits. Fine. It has to be since there are...
7
by: jacob navia | last post by:
There are some people here (let's call them "regulars" for short) that are always giving lessons to people about how easy is to write portable code, etc. They always point fingers at you telling...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.