How do I do a pointer to a structure correctly. It's obvious that System.IntPtr() only exepts values and not structures as well. I need this to get a DirectX8 function working in VB.NET. Thanks in advance.
Printable View
How do I do a pointer to a structure correctly. It's obvious that System.IntPtr() only exepts values and not structures as well. I need this to get a DirectX8 function working in VB.NET. Thanks in advance.
VB Code:
Dim ptr As IntPtr System.Runtime.InteropServices.Marshal.StructureToPtr(SomeStruct, ptr, True)