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 ' }