I have this sample in vb.net I need the same output in Delphi. its basically a list of pointers each pointer should point to an array of bytes (a image).
Dim pPointerArray As IntPtr() = New IntPtr(count) {}
Dim i = 0
For Each r In ImageList
pPointerArray(i) = Marshal.AllocHGlobal(r.Images.Length)
Marshal.Copy(r.Images, 0, pPointerArray(i), r.Images.Length - 1)
i += 1
Next
I tried many different ways to convert it, none of that seem to work.
I’m not sure what
ImageListis. It doesn’t appear to be the WinForms control of that name. Assuming you know how to do theMarshal.Copypart then you want something like this: