Change of Pointer-Type
Posted: Mon Sep 28, 2015 9:07 pm
At the moment we must write this:
Ok, the example is a little bit stupid, but sometimes you must change the type of the pointer like above. At the moment we must create a new one and copy the adress to the new pointer.
My suggestion:;the star is here important, because it indicate a pointer.
Other possibilities to use this:
Code: Select all
long.l
*pointer=@long
*long.long=*pointer
*long\l=10
My suggestion:
Code: Select all
long.l
*pointer=@long
(*pointer).*long\l=10
Other possibilities to use this:
Code: Select all
Structure duo
StructureUnion
q.q
d.d
EndStructureUnion
EndStructure
double.d=10.2
Debug Hex( (double).duo\q ); should be "4024666666666666"