David Hiltz wrote:
>
> > Jens Luedicke wrote:
> > > Is there a pre-compiled version of the Win32::API, too?
> > > If not, can anyone tell me how I can compile those modules
> > > with Mingw32 ?
> >
> > I started some time ago to port Win32::GUI to mingw32 and stopped
> ^^^^^^^
> what is this?
It is a port of the gcc compiler to Win32. Unlike Cygnus' "Cygwin" port
of gcc and egcs and accompanying tools, mingw32 doesn't require that
everything be distributed with a cygwin.dll. And as cygwin.dll is gpl,
there are legal questions as to whether or not anything you compile and
distribute using Cygwin can have a commercial/proprietary license.
Jens can probably tell you more... but that is the little bit that I've
heard time and again.
> > 5 minutes before end (okay, let's say 60 minutes). headers are okay,
> > now only some c funcs make troubles.
> >
> > Win32::API is by far not that simple to port, better use the similar
> > C::DynaLib (which doesn't compile on borland) or the brandnew FFI module.
> >
> > FFI should compile with mingw32 because it uses haible's libcallback.
> > The syntax is fairly similar.
FFI looks nice. It uses the gnu foreign function call library. I was
once pursuing the ability to pass pointers to perl functions as the
argument for Win32 API functions that use callbacks. John Toby, the
author of C::DynaLib told me that if he were doing it over again, and
were going to do it right... He'd have to use the ffcall library or
something similiar.
Jens, thanks for mentioning FFI. Win32::API is a lot more elegant than
C::DynaLib, but if FFI can... yes there it is in the README:
> The foreign function interface allows Perl code to directly call C functions
> exported from shared libraries (DLLs on Windows, .so files on Unix). It also
> allows a Perl subroutine to be packaged as a function which can be passed to
> an external C routine ("callbacks").
Aldo (if you're reading this), what's the chance that you might take a
look at Paul Moore's FFI module http://search.cpan.org/search?dist=FFI
and tell us what you think? Are still interested in this stuff?
[EMAIL PROTECTED]