Multilanguage Resource compilation options
-
Hi, I have inserted several resources in my project : ENU and FRA. I would like to generate 2 applications: - one only with the ENU resources - the second only with the FRA resources I tried to set the 'project settings > resources Tab' options with diferents parameters with no result. Please help Me! PS: I don't want a resource DLL. the project needs only one EXE file by language XtremDev
-
Hi, I have inserted several resources in my project : ENU and FRA. I would like to generate 2 applications: - one only with the ENU resources - the second only with the FRA resources I tried to set the 'project settings > resources Tab' options with diferents parameters with no result. Please help Me! PS: I don't want a resource DLL. the project needs only one EXE file by language XtremDev
-
Take a look here: http://msdn2.microsoft.com/en-us/library/d8ws31ff(VS.71).aspx[^]
Greetings. -------- M.D.V. If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
-
If I use AfxSetRessourceHandle the problem is that I need a resource DLL. so, it implies 2 files by language : 1 exe + 1 dll. I need just one file by language
Actually, if you configure all your messages/names/... of every language in a dll... you should only need an *.exe for all languages and one *.dll for every language. Not a pair exe-dll for everyone. Just wait to see what other people with more knowledge as me say.
Greetings. -------- M.D.V. If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
-
Hi, I have inserted several resources in my project : ENU and FRA. I would like to generate 2 applications: - one only with the ENU resources - the second only with the FRA resources I tried to set the 'project settings > resources Tab' options with diferents parameters with no result. Please help Me! PS: I don't want a resource DLL. the project needs only one EXE file by language XtremDev
I am not sure but try this. in the rc file of your project, you can find section like
"**LANGUAGE 12**, 1\r\n" "#pragma code_page(1252)\r\n" "#endif //_WIN32\r\n" "#include ""res\\aaaa.rc2"" // non-Microsoft Visual C++ edited resources\r\n" "#include ""**l.fra**\\afxres.rc"" // Standard components\r\n"
put some predefinitions in your project before compiling and switch the language aacording to it. like..#ifdef LAN_ENGLISH "**LANGUAGE 9**, 1\r\n" "#pragma code_page(1252)\r\n" "#endif //_WIN32\r\n" "#include ""res\\aaaa.rc2"" // non-Microsoft Visual C++ edited resources\r\n" "#include ""**\\afxres.rc**"" // Standard components\r\n" #elseif "**LANGUAGE 12**, 1\r\n" "#pragma code_page(1252)\r\n" "#endif //_WIN32\r\n" "#include ""res\\aaaa.rc2"" // non-Microsoft Visual C++ edited resources\r\n" "#include ""**l.fra**\\afxres.rc"" // Standard components\r\n" #endif
now if you want english before compiling put #define LAN_ENGLISH in the stdafx.h. I would like to know whether it worked or not..:)nave
-
I am not sure but try this. in the rc file of your project, you can find section like
"**LANGUAGE 12**, 1\r\n" "#pragma code_page(1252)\r\n" "#endif //_WIN32\r\n" "#include ""res\\aaaa.rc2"" // non-Microsoft Visual C++ edited resources\r\n" "#include ""**l.fra**\\afxres.rc"" // Standard components\r\n"
put some predefinitions in your project before compiling and switch the language aacording to it. like..#ifdef LAN_ENGLISH "**LANGUAGE 9**, 1\r\n" "#pragma code_page(1252)\r\n" "#endif //_WIN32\r\n" "#include ""res\\aaaa.rc2"" // non-Microsoft Visual C++ edited resources\r\n" "#include ""**\\afxres.rc**"" // Standard components\r\n" #elseif "**LANGUAGE 12**, 1\r\n" "#pragma code_page(1252)\r\n" "#endif //_WIN32\r\n" "#include ""res\\aaaa.rc2"" // non-Microsoft Visual C++ edited resources\r\n" "#include ""**l.fra**\\afxres.rc"" // Standard components\r\n" #endif
now if you want english before compiling put #define LAN_ENGLISH in the stdafx.h. I would like to know whether it worked or not..:)nave
Does the rc2 file always necessarly contain non-Microsoft Visual C++ edited resources? Also let me know of the following "#include ""res\\aaaa.rc2"" // non-Microsoft Visual C++ edited resources\r\n" I think the significance of the quotes is to have the literal meaning. Still I feel there is a typo in the closing quote.