multi languages resources [WinNT, Win95]

Posted on 1998-10-01
Last Modified: 2013-11-20
 I develop simple aplication on WinNT. I have all resources (dlg, string table, etc.) in rc file at two languages (Czech and Polish).
I used standart Mfc call "LoadString, construct dialog"

  I run apl. on WinNT (def.syst.lang. Czech). When I change language (at "Regional Settings" - user.syst.lang) to Polish (Czech) so screens are Polish (Czech). It's perfect.

 I run the same aplication on Czech Win95, but sreens are still Czech.
Sreens don't depend on "Regional settings", but language Win95 (Czech Win95
or Polish Win95). Def.syst.lang is the same user syst.lang.

1, Do'you explain, why screen on WinNT depend on setting user lang. and Win95 of lang. version?
2, Why on Win95 is automaticly load resource by win.lang. version?
3, How can I correct my problem?
4, Can I abble change other lang. resource during running aplication?
Question by:svab
  • 3

Expert Comment

ID: 1322811
I do a lot of localization/multi language support. Are you asking for a simple way to find the default language of the particular system whether NT or 95/8?

Author Comment

ID: 1322812
Edited text of question

Author Comment

ID: 1322813


Accepted Solution

polimetla earned 100 total points
ID: 1322814
Dear brother,

1. First make resources as MFC extention DLLs.
regarding this see

2. In run time load the required resouce by using
     PRIMARYLANGID. depending on return type.
   your problem solved.

any doubts please mail me.
Now we are working on German and English versions.

with love,
Bhavani P Polimetla

Author Comment

ID: 1322815
  today I find  way, which solved my trouble.

1, Mfc default create resource file with below definition
#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_CSY)
#ifdef _WIN32
#pragma code_page(1250)
#endif //_WIN32

2, I overwrite all SUBLANG_DEFAULT on SUBLANG_NEUTRAL, than I get what I wont


Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Need a Shell script to start a service checking the port 6 52
Host to IP 7 80
sum28 challenge 31 115
Annoying "thing" blocks my view 4 115
In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below.…

861 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question