473,326 Members | 2,805 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

multilingual application in C++

Hello all

I am planning to write a win32 console application which has needs to
run on English and German windows OS.
Can you please help me to start , Thank yoyu

Best Regards,
Aug 29 '06 #1
1 2376
What you need is a Stringtable.
..DLLs aren't just for code, they hold data as well.
Create a resource DLL for each language.

In the .RC file you need something like
#define IDS_HELLO 1
#define IDS_WORLD 2

STRINGTABLE
{
IDS_HELLO, "Hello"
IDS_WORLD, "World"
}

Of course the variable names can be in any language you like, which is
both good and bad. I once had to deal with an app whose variables were
in Dutch.

There is an API cunningly called "LoadString" and you will also need
LoadLibrary.

Most examples assume you're loading strings from your own EXE, so watch
out for that.

Also, having worked for German firms, I'm aware that you may well have
English (or other) speakers on a German installation of Windows.
I find it's best to default to the install language, but have a highly
visible option that allows them to change. Also you should always
install both language versions of the DLL.

Also, if you're going to communicate with a user, you want it to have
the default for *that* user, not the system's nationality. Try
something like
My Computer\HKEY_CURRENT_USER\Control Panel\International\sCountry
in the registery.

I know you're starting off with a console app, but one thing to be
aware of is that for most things almost all languages take more
characters to say the same thing than English.
Thus you should make the fields in your dialog boxes bigger. It's very
very much easier to do this when you first build the application than
to fix this later.

DominiConnor
DCFC The Pimp
Imran wrote:
Hello all

I am planning to write a win32 console application which has needs to
run on English and German windows OS.
Can you please help me to start , Thank yoyu

Best Regards,
Aug 29 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Ed | last post by:
I want to create a multilingual website in ASP. Is the Dictionary object created with the application-level scope the way to go?
0
by: Corobori | last post by:
I am developping a multilingual application. I would like to find an installer integrated with .NET allowing me to develop a multilingual interface as well as including the NET Framework in those...
0
by: Charles | last post by:
Hi, I'm looking for best practices for building a multilingual database. It is for an multilingual application that will use a persistence layer. I would like to know what are the different...
7
by: J?rg Keller | last post by:
Hi all I have to localize an Access 2002 application: The application using several form, tables etc. is currently only in English. Now the frontend has to be bilingual, so the user can choose...
3
by: charliewest | last post by:
Building Multilingual Portal I have been assigned a new project to build a multilingual portal using ASP.NET and the expected Microsoft technologies including C#, ADO.NET and SQL Server 2000. ...
2
by: amitmnagarwal | last post by:
I am using the following code to access the resourc file. Dim sAssembly As sAssembly = .GetExecutingAssembly() Dim rm As New ResourceManager("MultiLingual.Info", sAssembly) ''Case...
0
by: balaki | last post by:
Hi All, I have a Multilingual VB6 application, which rightnow supports French language. When I debug the code, it works in French, by changing the regional settings - locale to French(France)....
7
by: Luc The Perverse | last post by:
Hello! I am looking for a good way to make an application multilingual. Danish/English for now (but I don't want to preclude more than two languages eventually) Every dialog will have an option...
2
by: raju | last post by:
Hai all, I am working on the multilingual application, in asp.net. In that we are displaying contents in some other language (user selected language). In that page, we are having some textbox...
1
by: Abhijit D. Babar | last post by:
I have to create a multilingual application in Visual c++ .net 2008. I have a Windows form application and i want to run this on multilingual support. So how can i do this. Which change i have...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.