Types and pointers to chars

Previous topic - Next topic

spudgunjake

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

MrTAToad

You would need to use INLINE if you want pointers

Moru

Pointers aren't very "BASIC" are they? :-)

doimus

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 )

Moru

No more than FOR, IF and WHILE :-)

Kitty Hello

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.

spudgunjake

I thought I would need to use INLINE, I want to convert some old code from BLITZMax to GLBasic.

thanks for the nod.

hardyx

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.