Memory location not allowed after 6.02
Posted: Mon May 06, 2024 11:06 pm
I have this code, which works in 6.02, but doesn't work after
After 6.02 it reports an error that Native types can't be used with pointers.
What should I change to get this working in later versions?
Code: Select all
Global.i *buf
ReadFile (0, "C:\txt.txt")
*buf = AllocateMemory (Lof (0))
ReadData (0, *buf, Lof(0))
CloseFile (0)What should I change to get this working in later versions?