?
Solved

multi languages resources [WinNT, Win95]

Posted on 1998-10-01
5
Medium Priority
?
346 Views
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.

But:
 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?
0
Comment
Question by:svab
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
5 Comments
 
LVL 2

Expert Comment

by:kinkajou
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?
0
 

Author Comment

by:svab
ID: 1322812
Edited text of question
0
 

Author Comment

by:svab
ID: 1322813


0
 
LVL 1

Accepted Solution

by:
polimetla earned 100 total points
ID: 1322814
Dear brother,

1. First make resources as MFC extention DLLs.
regarding this see
http://members.tripod.com/~polimetla

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
Bhavani_73@hotmail.com
0
 

Author Comment

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

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

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

0

Featured Post

Get MongoDB database support online, now!

At Percona’s web store you can order your MongoDB database support needs in minutes. No hassles, no fuss, just pick and click. Pay online with a credit card. Handle your MongoDB database support now!

Question has a verified solution.

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

This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
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.
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…

777 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