Thread overview
winsamp.d dont compiler.
Jul 31, 2016
Cassio Butrico
Aug 01, 2016
Sean Campbell
Aug 01, 2016
Cassio Butrico
July 31, 2016
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
August 01, 2016
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.
August 01, 2016
On Monday, 1 August 2016 at 00:27:27 UTC, Sean Campbell wrote:
> On Sunday, 31 July 2016 at 23:36:54 UTC, Cassio Butrico wrote:
>> [...]
>
> 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.


thanks for listening I will try