I hit the keyboard for so long and changed data types for so long that the stubborn program gave it up and started working!
Are you stealing my patented "Steve Coding Style"? I swear, that's also EXACTLY how I end up getting things to swap over from 32-bit types to 64-bit types. There's a set of rules in there somewhere about where padding comings into play and turns our 4-bytes into 8-bytes, but I swear, I have no idea what it is. "Hitting the keyboard for so long and changing data types for so long that the stubborn program gives it up", is about the only way I know to make the process work. :)
Here's a version which should work for you in both 32-bit and 64-bit versions of Windows:
https://www.qb64.org/forum/index.php?topic=2689.msg119230#msg119230 (No credit due me at all here -- this is all you guys! All I did was piece the parts together; you're the guys who sorted out what those parts needed to look like to make it work for us! A monkey could've did my part. :P)