Multiple Resource Files

Hello.

I have been "told" that my app may need to operate in multiple languages. As far as I can tell this will need me to create another resource file, with all the same dialogs, menu's etc just with different languages. So "File" is something else in spanish. I realise that this is a labourous task etc. I was wondering where it is in Visual studio that you can specify to use a different .rc file As I understand it is a .res file thats actually used in the build (i assume its a compiled rc file). I know where this can be changed in visual studio but is there somewhere that i can say instead of using "some path\my_resources.rc" to "some path\my_french_resources.rc"

thanks and sorry i realise the answer to this is likely to be something glaringly obvious!

Will



Answer this question

Multiple Resource Files

  • Jonas von Geijer

    Ok, thats not the answer I expected, I didnt know we could do that. So how would i compile resource only dlls and how would I reference these in my main application

    Thanks

    Will


  • Jedi_Dave

    wdhough wrote:

    Hello.

    I have been "told" that my app may need to operate in multiple languages. As far as I can tell this will need me to create another resource file, with all the same dialogs, menu's etc just with different languages. So "File" is something else in spanish. I realise that this is a labourous task etc. I was wondering where it is in Visual studio that you can specify to use a different .rc file As I understand it is a .res file thats actually used in the build (i assume its a compiled rc file). I know where this can be changed in visual studio but is there somewhere that i can say instead of using "some path\my_resources.rc" to "some path\my_french_resources.rc"

    thanks and sorry i realise the answer to this is likely to be something glaringly obvious!

    Will

    It may be more convenient to have separate resource-only DLLs, one for each language.



  • Darlek

    No! I am not working for Microsoft so its not my job to write technical notes. I sometimes write some articles, but mostly they are in German.

    Also my English wouldn't be so good...

    Also this technical note is really old. Afaik MFC 4.0 contained already this TN.



  • SolidStrategies

    Cool, thanks for your help martin, did you write that technical note then, because its one of the best i've read in terms of explaining how to do it etc, well done!

    Thanks again martin

    Will


  • huzzy

    No it will not run slowly. The DLL belongs to your process, the location from were resources are loaded does not impact speed.

  • ltaylor934

  • Michael Maes

    Terrfic! Thankyou. Just out of curiosity, I'm guessing that this will mean my app runs slowly And if so is it something significant. Just want to check.

    Thanks


  • mohsan

    I don't know if you saw the link to a sample project inside my article.

    http://www.mpdvc.de/artikel/MLSample.zip



  • Multiple Resource Files