Search notes:

VBA: longLong only in 64-bit environments

The data type longLong is only defined in 64 bit (Office) environments. Thus, before declaring it, we want to be sure we're actually running in such an environment and check it with the #if … then compiler construct.
option explicit

sub main() ' {

#if win64 then
    dim ptr as longLong
#else
    dim ptr as long
#endif

    debug.print ("size of pointer = " & len(ptr))

end sub ' }
Github repository about-VBA, path: /compiler-directives/winX/longLong.bas

See also

Compiler directives

Index