Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

multilanguage programming and unicode

Hello.
How can I write my program multilanguage without care about windows language? How can I use unicode?
for example an application work with farsi language in a english windows.
thank you.

Comments

  • AsmGuru62AsmGuru62 Member Posts: 6,519
    : Hello.
    : How can I write my program multilanguage without care about windows language? How can I use unicode?
    : for example an application work with farsi language in a english windows.
    : thank you.
    :
    [blue]To make your source code 'buildable' for both UNICODE and NO-UNICODE:

    1. Use TCHAR type instead of CHAR everywhere.

    2. Use functions from TCHAR.H instead of all string functions.
    Example: NOT strcpy(), BUT _tcscpy(). There is TCHAR-based equivalent for all string functions.

    3. When using literals - use _T() macro.
    Example: NOT "Hello, World!", BUT _T("Hello, World!").

    4. When building for unicode define both _UNICODE and UNICODE in the compiler options dialog. Also, remove _MBSC define.

    5. All language dependent strings should be in .RC file.
    It should be translated for every language.
    [/blue]
  • Shawn CarterShawn Carter Member Posts: 0

    ___ || http://forcoder.org || free ebooks and video tutorials about // Go C Scratch Perl Visual Basic .NET Objective-C Assembly Python Visual Basic PHP MATLAB Swift C# Java Ruby R Delphi JavaScript PL/SQL C++ Julia Lisp LabVIEW Logo Scala Hack Fortran Prolog Crystal F# SAS Apex Ada ML Alice Bash Awk ABAP Transact-SQL COBOL Clojure FoxPro Kotlin Rust Lua Dart Scheme Erlang VBScript D // ____________

Sign In or Register to comment.