ctypes vs pywin32 (Python for Windows extensions)

676 views
Skip to first unread message

Serg Kovrov

unread,
Mar 19, 2009, 9:08:53 AM3/19/09
to pyglet-users
As pyglet is not supporting 64-bit python on windows, I have started
to look in to how to fix this.

I have tried minimal winapi usage with ctypes. Right now I can't solve
a window creation failure as DefWindowProc returns FALSE on
WM_NCCREATE. It seems data pointed by wParam/lParam in my WindowProc
callback is corrupting somehow. The same code of course works fine on
32-bit.

On the other hand, pywin32 seems to work fine on 64-bit python. If
there is no principal objections about pyglet to use pywin32, I would
like to volunteer to patch (at least) window creation/messaging code
to use pywin32 instead ctypes.


--
serg.
Message has been deleted

Serg Kovrov

unread,
Mar 19, 2009, 10:36:47 AM3/19/09
to pyglet-users
I think this ctypes-win64 problem is not directly related to pyglet,
but just in case if anyone have 64-bit python on windows, I'd like to
confirm the issue. Here is the code:

http://rafb.net/p/CQUypM91.html

--
serg.
Reply all
Reply to author
Forward
0 new messages