Hi, With FFI now building with MSVC++ I''ve been converting the windows-pr stuff to use FFI. One thing that''s a bit of a hassle is having to remember the Windows data types, e.g. DWORD, etc. Do you think it would be worth it to add a few of them? I don''t want to add them all necessarily because I know there are a lot, but if I could pick just one it would be ":dword". Regards, Dan
Hi, 2012/1/29 Daniel Berger <djberg96 at gmail.com>:> Hi, > > With FFI now building with MSVC++ I''ve been converting the windows-pr stuff > to use FFI. One thing that''s a bit of a hassle is having to remember the > Windows data types, e.g. DWORD, etc. > > Do you think it would be worth it to add a few of them? I don''t want to add > them all necessarily because I know there are a lot, but if I could pick > just one it would be ":dword". > >I think it would be better to define a separate common Windows data and structure type module like python''s ctypes.wintypes. Refer to http://fossies.org/dox/Python-3.2.2/namespacectypes_1_1wintypes.html http://fossies.org/dox/Python-3.2.2/wintypes_8py_source.html> Regards, > > DanRegards, Park Heesob
> -----Original Message----- > From: win32utils-devel-bounces at rubyforge.org [mailto:win32utils-devel- > bounces at rubyforge.org] On Behalf Of Heesob Park > Sent: Saturday, January 28, 2012 10:39 PM > To: Development and ideas for win32utils projects > Subject: Re: [Win32utils-devel] windows data types for ffi > > Hi, > > 2012/1/29 Daniel Berger <djberg96 at gmail.com>: > > Hi, > > > > With FFI now building with MSVC++ I''ve been converting the windows-pr > stuff > > to use FFI. One thing that''s a bit of a hassle is having to remember > the > > Windows data types, e.g. DWORD, etc. > > > > Do you think it would be worth it to add a few of them? I don''t want > to add > > them all necessarily because I know there are a lot, but if I could > pick > > just one it would be ":dword". > > > > > I think it would be better to define a separate common Windows data > and structure type module like python''s ctypes.wintypes. > > Refer to > http://fossies.org/dox/Python-3.2.2/namespacectypes_1_1wintypes.html > http://fossies.org/dox/Python-3.2.2/wintypes_8py_source.htmlOk. I guess it''s easy enough to wrap these use ffi''s typedef feature: https://github.com/ffi/ffi/wiki/Examples (bottom) Dan