Fri Feb 03 18:35:45 2012: Request 74578 was acted upon.
Transaction: Correspondence added by DOUGW
       Queue: Win32-API
     Subject: Win32::API::Struct not aligned on 64 bit
   Broken in: 0.64
    Severity: Normal
       Owner: Nobody
  Requestors: do...@cpan.org
      Status: open
 Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=74578 >


FYI, I just realized that while I'm using a 64-bit machine, the perl I
was using is a 32-bit perl. Under a 64-bit perl, the dll I'm trying to
use gives "%1 is not a valid Win32 Application".

That said, Win32::API::getPack() and the calls to it are wrong. It
returns a scalar, array, scalar, but in the calls to it, the last scalar
will be slurped into the array. Easiest thing to do is probably
rearrange the return values and return both scalars before the array,
and adjust all the calls to the function.

Reply via email to