<StructLayout(LayoutKind.Sequential)> _ Private Structure data Public a As Integer Public b As sort Public c As sort Public d As Integer Public e As Integer End Structure
Dim dat as data 'OBJECT TO STR Dim ptr As IntPtr = AllocHGlobal(SizeOf(dat)) StructureToPtr(dat, ptr, True)
for i as integer=0 to 6 ptr(i)=44 next
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)