Closed matkuki closed 6 years ago
Changed line 951 in nigui.nim
from return cast[int](cast[char](unicode).toUpper)
to return cast[int](cast[Rune](unicode).toUpper)
and commented out line 66 in nigui/private/windows/platform_impl.nim
and it works.
Seems like the problem is the recent string implementation change in the compiler.
@matkuki Thx for reporting :)
@trustable-code Line 66 still needs to be removed! https://github.com/trustable-code/NiGui/blob/master/src/nigui/private/windows/platform_impl.nim#L66
@matkuki Why? I think it's necessary to end the string with two null bytes.
MultiByteToWideChar does not null-terminate an output string... https://msdn.microsoft.com/en-us/library/windows/desktop/dd319072(v=vs.85).aspx
@trustable-code With line 66 uncommented the compilation succeeds, but running the executable throws: commenting out that line makes it work: Hope it helps.
@matkuki : I have removed the line, thanks for trying out with latest Nim. Next time please open a new issue.
@trustable-code Great, thanks! Will open a new issue next time 👍
Hi,
Trying to compile
example_01_basic_app.nim
and get:My specs: