digitalmars.D.learn - winsamp.d dont compiler.
- Cassio Butrico (14/14) Jul 31 2016 in C:\d\dmd2\samples\d winsamp.d dont compiler.
- Sean Campbell (6/20) Jul 31 2016 There was changes made to core.sys.windows so it defaults to
- Cassio Butrico (2/9) Jul 31 2016 thanks for listening I will try
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
Jul 31 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 1There 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.
Jul 31 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:thanks for listening I will try[...]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.
Jul 31 2016