From: daz Date: 2004-01-02T17:31:46+09:00 Subject: Re: Win32API question/suggestion Daniel Berger wrote: > Hi all, > > As I sit here finally learning the Win32API module, rather than > writing C extensions, I was wondering about something... > > There are many generic functions used in Win32 programming, such as > GlobalAlloc(), GlobalFree(), etc. Currently, it appears that I have > to do this: > > GlobalAlloc = Win32API.new(...) > GlobalAlloc.Call > [...] > Thoughts? Opinions? It can already do this and I missed the boat > somewhere? > Moonwolf has drawn together much of this in: http://www.moonwolf.com/ruby/archive/win32module_20001226b.tar.bz2 (537Kb) If you can't extract bz2 files, try: http://www.7-zip.com/ (There may be better ones) copy contents of win32 dir to ---\lib\ruby\1.8\win32, then require 'win32/winbase' ## loads Win32API itself GlobalAlloc.call(...) daz