Closed ghost closed 7 years ago
So, for example SetWindowLongPtrW must be SetWindowLongW on 32 bits
same on windows 7 32bit
@trustable-code any thoughts?
I will try to fix that sometime, even I think 32 bit is legacy.
@trustable-code I know that it's legacy, but you can output an error message (e.g. - compiling on x32 is not supported)
@TiberiumN: Now it works for me under when I compile it as 32-bit Windows EXE. Please test on your system. When it does not work with Visual Studio, please make an extra issue.
@trustable-code thank you very much, it works now with visual studio compiler 32bits and mingw 32bits.
Trying to run first example from NiGui with i686 MinGW (compiled .exe is 32bit):
With x32 Visual Studio compiler it's the same.
While compiling for amd64 (with x64 bit mingw or cl.exe), everything works perfectly
Probably NiGui must do checking for i386 or amd64 in winapi bindings, like this - https://github.com/jangko/nimCEF/blob/0946c0b39b1cc4976923a8af4dfc779bb9f6b70b/platform/winapi.nim#L1103
Also: https://stackoverflow.com/questions/24664245/attributeerror-function-getwindowlongptrw-not-found https://groups.google.com/forum/#!topic/golang-nuts/pkmwc8k0DpU