On Sunday, 31 July 2016 at 23:36:54 UTC, Cassio Butrico wrote:
in C:\d\dmd2\samples\d winsamp.d dont compiler.
dmd winsamp gdi32.lib winsamp.def
winsamp.d(53): Error: function
core.sys.windows.winuser.LoadIconA (void*, const(char)*) is not
callable using argument types (typeof(null), wchar*)
winsamp.d(54): Error: function
core.sys.windows.winuser.LoadCursorA (void*, const(char)*) is
not callable using argument types (typeof(null), wchar*)
winsamp.d(57): Error: cannot implicitly convert expression
(toStringz(className)) of type immutable(char)* to const(wchar)*
winsamp.d(59): Error: function
core.sys.windows.winuser.RegisterClassA (const(WNDCLASSA)*) is
not callable using argument types (WNDCLASSW*)
--- errorlevel 1
There was changes made to core.sys.windows so it defaults to
unicode.
Try dmd winsamp gdi32.lib winsamp.def -version=ANSI
or change all of the xxxA functions to xxxW and use toUTF16z (in
stf.utf) instead of toStringz.