473,230 Members | 1,779 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,230 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 6722
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...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...

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.