in reply to Re: Low-level version of Win32::API::Struct
in thread Low-level version of Win32::API::Struct

I have made the following changes:

aKeyFunc = Win32::API->new("myDll.dll",'findInTableByKey', 'NNPN',' +C','_cdecl');
returns a pointer (as expected). When I unpack it using 'P10' I recover the content of the cell in my table (i.e. the function works!!!).THANKS!

Replies are listed 'Best First'.
Re^3: Low-level version of Win32::API::Struct
by bulk88 (Priest) on Aug 02, 2012 at 16:01 UTC
    What are you unpacking with a 'P10'? That 'C' won't return a pointer, I think that 'C' as a return type is an undef in 0.68. You might also be leaking memory.