Rene,
you have the ability to find thinBasic keywords that even I do not remember to have developed
Where memory is allocated is on the hands of the OS Kernel. The precise location where the memory is allocated is not known in advance.
In LONG variables the first bit is used for the sign but when you store a pointer into a LONG, the sign has no meaning, it is just a number stored into a 4 byte.
When such data is passed to a function expecting a pointer, the first bit is not used as sign and all is interpreted as a DWORD.
So, in thinBasic use LONG and DWORD as interchangeable when storing a pointer.
Important is not to make any calculation using LONG storing pointers otherwise it is better to use DWORD.
Ciao
Eros
Bookmarks