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

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Rolf Hemmerling

    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



    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,Germ any
    / / / http://www.hemmerling.com/



  • Rolf Hemmerling

    #2
    Addition: gettext

    I just learned that there is
    gettext

    , which is supported natively by

    wxWindows

    ,

    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"
    trolltech.com is for sale on Above.com Marketplace.

    , any suggestions ?

    So internationalis ation 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,Germ any
    / / / http://www.hemmerling.com/

    Comment

    • Rolf Magnus

      #3
      Re: Addition: gettext

      Rolf Hemmerling wrote:
      [color=blue]
      > 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 ?[/color]

      Qt has its own support for i18n. I suggest you use this.
      See http://doc.trolltech.com/3.2/i18n.html

      Comment

      • Roger Leigh

        #4
        Re: Addition: gettext

        Rolf Hemmerling <hemmerling@gmx .net> writes:
        [color=blue]
        > I just learned that there is
        > gettext [...]
        > if I just wanna have local strings.
        >
        > Do you like it, is it usual to use it ?[/color]

        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.
        [color=blue]
        > 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.[/color]

        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.
        [color=blue]
        > As the mandatory GUI platform ist "QT"
        > http://www.trolltech.com/
        > , any suggestions ?[/color]

        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.

        Comment

        Working...