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


Dimitar Kolev <dimitarrosenovko...@hotmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dimitarrosenovko...@hotmail
                   |                            |.com




--- Comment #1 from Dimitar Kolev <dimitarrosenovko...@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: -------

Reply via email to