SFML community forums
Bindings - other languages => Python => Topic started by: JasonLeon on February 17, 2025, 11:01:58 am
-
I can't bind WindowHandle.
error: invalid use of incomplete type 'struct HWND__'
I know it's from Windows API, but #include <Windows.h> didn't work either.
-
Have you seen: https://github.com/martinRenou/pysfml11
What version of SFML are you using?
When does this occur? (I have no idea about pybind11)
-
I use SFML 3.0. The repository of the link you gave me is abandoned long ago and there's no WindowHandle.
-
Not updated, doesn't necessarily mean abandoned ;D
But it's not using SFML 3, so creating your own might not be the worst idea.
The full HWND definition should be part of the Windows.h header.
But in reality it should be included with SFML's headers.