Solved

Multilingual

Posted on 2000-03-02
8
181 Views
Last Modified: 2013-11-20
i want to make my project multilingual,for that i want to use unicode,i want to make it in inidian reginal language.
can anybody help me out how to go for unicode
thanks
0
Comment
Question by:jaydeep
  • 4
  • 3
8 Comments
 
LVL 8

Expert Comment

by:gelbert
ID: 2577778
You can use CString to handle Unicode strings, just have to make sure that "_UNICODE" is defined
0
 
LVL 2

Expert Comment

by:bbousquet
ID: 2578296
You will also need to use the tchar.h functions and data types.

Namely, you use TCHAR instead of char and all the strxxx functions become _tcsxxx. You also need to use _T("") around your text strings - TEXT("") also works fine. If you use those tricks, your app will compile with char values on non-Unicode platforms and with wchar_t values on Unicode platforms.

Using the resource's string table can also help you alot.

Good luck!
0
 
LVL 8

Expert Comment

by:gelbert
ID: 2580247
Cstring encupsulates TCHAR and expands it into char or wchar depends on "_UNICODE" define
0
Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

 
LVL 2

Expert Comment

by:bbousquet
ID: 2580684
I know but there are times in which you can't always use CString... and you have to use those _T macros anyway.
0
 
LVL 8

Expert Comment

by:gelbert
ID: 2581206
It is MFC board. You should be able to use CString in MFC code. ;)
0
 
LVL 2

Expert Comment

by:bbousquet
ID: 2581289
I am totally in agreement with you.

However, those _T (or TEXT) macros are needed whether you use CString or not.
0
 
LVL 8

Expert Comment

by:gelbert
ID: 2581744
Yes
0
 
LVL 1

Accepted Solution

by:
Mensana earned 25 total points
ID: 2602341
There is a lot of theory to discuss about this subject. In addition to what the VC help offers, you can read a very good article about Unicode programming at:
http://codeguru.developer.com/cpp_mfc/unicode.shtml
This article will offer you some helpful hints.
After you read this article you may have some more specific questions. We can try to solve them at that time.
Regards,
M.
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

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…
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.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

776 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