..Eureka! I've found a way, by using memblocks and not types!
load dll "Kernel32.dll",1
make memblock 1,16
systime = get memblock ptr(1)
if dll exist(1) and dll call exist(1,"GetSystemTime")
call dll 1, "GetSystemTime", systime
year = memblock word(1,0)
month = memblock word(1,2)
weekday = memblock word(1,4)
day = memblock word(1,6)
hour = memblock word(1,8)
minute = memblock word(1,10)
second = memblock word(1,12)
print "Date: ";day;"/";month;"/";year
print "Time: ";hour;":";minute;":";second
endif
sync : wait key
delete memblock 1
end
Programming anything is an art, and you can't rush art.
Unless your name is Bob Ross, then you can do it in thirty minutes.