Skip to main content

Timeline for Win32 File API in VBA

Current License: CC BY-SA 3.0

6 events
when toggle format what by license comment
May 22, 2016 at 13:12 comment added RubberDuck Oops. Wrong language @ThunderFrame. My bad.
May 22, 2016 at 12:48 comment added ThunderFrame AFAIK, sizeof doesn't exist in VBA, but in any case, neither the size of the destination variable, or the size of the source variable are useful, as CopyMemory permits you to copy fewer bytes than the source or the destination variables actually hold (which is, for example, why CopyMemory can copy partial arrays). I do see your point about magic numbers, but in this case a constant like Const SIZE_OF_LONG as Long = 4, might be better.
May 22, 2016 at 10:39 comment added RubberDuck If that's true @ThunderFrame, then the sizeof() function would be a good option too.
May 22, 2016 at 7:41 comment added ThunderFrame the 4's are for the length, in bytes, of the memory to copy. 4 bytes being the size of a Long.
Sep 9, 2015 at 12:54 vote accept Blackhawk
Sep 5, 2015 at 11:59 history answered RubberDuck CC BY-SA 3.0