FreeBasic Bare Bones: Difference between revisions

Jump to navigation Jump to search
[unchecked revision][unchecked revision]
Content deleted Content added
m Fixed mistake: a long does not hold 4 bytes. It holds 8 bytes.
m Fixed another mistake with long length
Line 26: Line 26:
Dim mypointer As Long Ptr
Dim mypointer As Long Ptr
</source>
</source>
This one points to the first of 4 bytes of memory, which together form the number.
This one points to the first of 8 bytes of memory, which together form the number.


You can not use pointers straight away. Consider sending a letter with no address on it will not do any good. So we must first put an address in there. That leads to the question: how do we get an address. Some things have fixed addresses, like the video card.
You can not use pointers straight away. Consider sending a letter with no address on it will not do any good. So we must first put an address in there. That leads to the question: how do we get an address. Some things have fixed addresses, like the video card.