[Issue 1988] more unicode

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Jul 10 00:03:27 PDT 2009


http://d.puremagic.com/issues/show_bug.cgi?id=1988


Dimitar Kolev <DimitarRosenovKolev at hotmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |DimitarRosenovKolev at hotmail
                   |                            |.com




--- Comment #1 from Dimitar Kolev <DimitarRosenovKolev at hotmail.com>  2009-07-10 00:03:27 PDT ---
Hello I am new to D so hope this is not wrong.

Go to dmd2\src\druntime\import\core\sys\windows.d

In that file you can search for 
MessageBoxA(HWND hWnd, LPCSTR lpText, LPCSTR lpCaption, UINT uType);

Add this line beneath it:

MessageBoxW(HWND hWnd, LPCWSTR lpText, LPCWSTR lpCaption, UINT uType);

And beneath
MessageBoxExA(HWND hWnd, LPCSTR lpText, LPCSTR lpCaption, UINT uType, WORD
wLanguageId);

Add this line:

MessageBoxExW(HWND hWnd, LPCWSTR lpText, LPCWSTR lpCaption, UINT uType, WORD
wLanguageId);

As far as I know adding UNICODE support in WINDOWS is just a matter of adding
LPCWSTR instead of LPCSTR.

Tested it and it worked with one winsamp.d (D sample).

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list