I'll have to check on that...
But the pixels pointer functions are only for accessing the memory of bitmaps.
I do believe though that you can reserve memory... There is a command for that.
EDIT:
Yes you can. This from the Variable principles of the DBPro help files:
Quote: "You can use the value of a variable to specify, read and write the contents of an address by using the "*" indirect symbol. This is useful for obtaining areas of memory you wish to read from or write to and control the pointer into this memory using a standard variable."
Ptr as DWORD
Ptr=Make Memory(4)
*Ptr=42
PRINT *Ptr
And a small test I just made:
a as byte
pointer as dword
ptr as dword
` Allocate 2 bytes.
pointer = make memory(2)
` Clear the memory to 0's.
fill memory pointer, 0, 2
` Print the contents of the 2 bytes before changing them.
print "Before:"
ptr = pointer
a = *ptr
print "0: " + str$(a)
inc ptr, 1
a = *ptr
print "1: " + str$(a)
` Change the values of the bytes.
ptr = pointer
*ptr = 1
inc ptr, 1
*ptr = 2
` Print the contents after the change.
print ""
print "After:"
ptr = pointer
a = *ptr
print "0: " + str$(a)
inc ptr, 1
a = *ptr
print "1: " + str$(a)
wait key
end
EDIT2:
Just re-read your question, and...
NO, you can't create variable references like you do in C/C++, but as shown above you can Allocate memory and access it using a pointer.
There might be something in matrix1utils that allows you to do that. IanM?
I know you can do function-pointers with it.