-
-
Notifications
You must be signed in to change notification settings - Fork 125
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No SetWindowLongPtrW
in user32
#18
Comments
I've just checked the winapi rs docs for the definition of Get/SetWindowLongPtrW and it is only exported for "x86_64" aka 64 bits Windows. Thank you for reporting this issue, I will add a fix that uses SetWindowLong if SetWindowLongPtr cannot be found and then It should work. |
@uranusjr I've just pushed the fix on master, can you check if it work now? I tested it on a 32bits rust on my machine, but I just want to be absolutely certain there are no more ARCH bugs before I release another version. |
Yup, master runs as expected. Thanks! 👍 There’s another problem: The I have no idea if this is related though, so feel free to close this (and put this in a seperate issue). |
I tried compiling the library with the hello world program, but could not get past compiling native-windows-gui v0.1.0. There are multiple errors, but they seem to boil down to one specific problem: unable to import
GetWindowLongPtrW
andSetWindowLongPtrW
fromuser32
.I’m running Rust 1.13.0 MSVC on Windows 7 (32-bit) with C++ Build Tools (as advised on rustlang.org) and Windows 8 API installed.
(Sorry if this is a dumb problem; I’m not familiar at all with Windows.)
The text was updated successfully, but these errors were encountered: