Announcement

Collapse
No announcement yet.

Unicode DDT

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Michael Mattias
    replied
    Do I have to use APIs [versus DDT syntax] really to make my program multilingual (with Russian)?
    Today? Yes.

    Leave a comment:


  • Bernhard Fomm
    replied
    I find the PB functions better than the APIs.
    Therefore I have written everything in PB.

    Do I think a little dully? Do I have to use APIs
    really to make my program multilingual (with Russian)?

    Leave a comment:


  • Michael Mattias
    replied
    DDT support - AFAIK - is "ANSI only".

    If you would like Unicode versions of DDT syntax supported in the compiler, you should send a New Feature Suggestion to [email protected]

    If you want "Unicode Now", you can use the Unicode versions of the window creation functions CreateWindowEx, DialogBox and CreateDialog along with the unicode versions of SendMessage, PostMessage and any other functions you need to operate on your screens.

    Doable? Very.

    Quick and Easy? Well, depends. If you put a %UNICODE equate into your Win32API.Inc file, you would have something like...

    Code:
    #IF %DEF(%UNICODE) 
    DECLARE FUNCTION SendMessage LIB "USER32.DLL" ALIAS "SendMessage[B]W[/B]" _ 
        (BYVAL hWnd AS DWORD, BYVAL dwMsg AS DWORD, BYVAL wParam AS DWORD, BYVAL lParam AS LONG) AS LONG
    #ELSE
    DECLARE FUNCTION SendMessage LIB "USER32.DLL" ALIAS "SendMessage[B]A[/B]" _ 
        (BYVAL hWnd AS DWORD, BYVAL dwMsg AS DWORD, BYVAL wParam AS DWORD, BYVAL lParam AS LONG) AS LONG
    #ENDIF
    But the really tedious task will be making sure you convert both string variables and literals to Unicode when %DEF(%UNICODE) is true.


    MCM

    Leave a comment:


  • Bernhard Fomm
    started a topic Unicode DDT

    Unicode DDT

    I have seen the beta code:

    http://www.powerbasic.com/support/pb...unicode+msgbox

    I use XP and PB 8.04.

    Only the Msgbox works on my system with unicode-strings. The dialogue window is not displayed.

    I would like to widen my programs with the Russian language.
Working...
X