Hiya,
I noticed that the type definition for WndClass is incorrect (possibly the reason you wrap via C ?) in win32.mod -> user.bmx.
All handles should be Byte Ptr in Windows to get the correct binary layout and correct size.
I've not checked any other definitions as this time.
Type WNDCLASS
Field style:Int
Field lpfnWndProc:Byte Ptr
Field cbClsExtra:Int
Field cbWndExtra:Int
Field hInstance:Byte Ptr
Field hIcon:Byte Ptr
Field hCursor:Byte Ptr
Field hbrBackground:Byte Ptr
Field lpszMenuName:Byte Ptr
Field lpszClassName:Byte Ptr
End Type
Hiya, I noticed that the type definition for WndClass is incorrect (possibly the reason you wrap via C ?) in win32.mod -> user.bmx. All handles should be Byte Ptr in Windows to get the correct binary layout and correct size. I've not checked any other definitions as this time.