http://www.perlmonks.org?node_id=993985


in reply to Win32-Registry build failure on windows

One simple fix is to open the 'typemap' file that ships with the Win32::Registry source, and insert the following line at the beginning of that file:
FILETIME ANYTHING_YOU_WANT
The correct fix is (I think) to apply this patch to Registry.xs:
C:\sisyphusion\Win32-Registry-0.10>diff -u Registry.xs_orig Registry.x +s --- Registry.xs_orig 2012-05-22 19:19:27 +1000 +++ Registry.xs 2012-05-22 19:15:18 +1000 @@ -545,7 +545,7 @@ DWORD idx char *subkey = NO_INIT char *classname = NO_INIT - FILETIME lastwritetime = NO_INIT + SV * lastwritetime = NO_INIT CODE: char keybuffer[TMPBUFSZ]; DWORD keybuffersz = TMPBUFSZ; @@ -775,7 +775,7 @@ DWORD maxvalnamelen = NO_INIT DWORD maxvaldatalen = NO_INIT DWORD secdesclen = NO_INIT - FILETIME lastwritetime = NO_INIT + SV * lastwritetime = NO_INIT CODE: char keyclass[TMPBUFSZ]; FILETIME ft;
Cheers,
Rob