Re: How to get pointer to a string stored in an array element?
Posted: 13 May 2023, 10:51
@Helgef,
interesting concept. I'm still struggling with the new objects. Finally I chose something similar:
Thanks!
interesting concept. I'm still struggling with the new objects. Finally I chose something similar:
Code: Select all
RBArr := []
RBBuf := Buffer(TDBSize * RBCnt, 0) ; C array of TASKDIALOG_BUTTON structures
Addr := RBBuf.Ptr
For I, V In Radios {
Buf := Buffer((StrLen(V) + 1) * 2, 0)
StrPut(V, Buf.Ptr)
RBArr.Push(Buf)
Addr := NumPut("Int", MinRID + I, "Ptr", Buf.Ptr, Addr)
}