having trouble with types, can any one help. been right thick. Or is it better to use INLINE function.
I need a pointer to a char in my type,
TYPE My_Test
*mTargetBuf
mWidth
mHeight
ENDTYPE
You would need to use INLINE if you want pointers
Pointers aren't very "BASIC" are they? :-)
No. Each time you think of pointers and BASIC, a cute puppy dies.
But then again, PEEKs and POKEs are kind of pointers, right?
( tiny squeak echoes in the distance )
No more than FOR, IF and WHILE :-)
what do you need the pointer for? They are hard to handle, when you have to be sure the memory is properly allocated and deleted afterwards.
I thought I would need to use INLINE, I want to convert some old code from BLITZMax to GLBasic.
thanks for the nod.
I think you can convert the pointer to a dynamic array of some single or complex type. You can use Redim later, for allocate this field to the desired size.