in reply to Low-level version of Win32::API::Struct
My machine is 64 b ... pack('NC',$size,$aKey).
If you are running Windows on Intel (90%+ are), then you would need 'V' which is 32-bit unsigned in VAX (little-endian) order.
Then size_t will equate to a 64-bit unsigned int which would be template 'Q'.
The simplest template would be 'J' which should work for 32-bit or 64-bit. (Excepting 32-bit perl's compiled for 64-bit ints.)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Low-level version of Win32::API::Struct
by sgv_81 (Novice) on Aug 01, 2012 at 16:21 UTC | |
by bulk88 (Priest) on Aug 01, 2012 at 17:32 UTC |