Is there some clever way to use CopyMemory to fill a 2D array from a 1D array? I suspect there isn't, but thought I'd ask. Certainly the tried and true nested loop will do it - was just looking for a more compact way to do it.
VB Code:
Dim bArray2(0 to 31, 0 to 16) as byte Dim bArray1(0 to 511) as byte CopyMemory ??, bArray1(0), 512&





Reply With Quote