| Thread overview | |||||
|---|---|---|---|---|---|
|
July 31, 2016 winsamp.d dont compiler. | ||||
|---|---|---|---|---|
| ||||
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 Re: winsamp.d dont compiler. | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Cassio Butrico | 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 Re: winsamp.d dont compiler. | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Sean Campbell | 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
| |||
Copyright © 1999-2021 by the D Language Foundation
Permalink
Reply