Accessing a structure by pointer in VB/VB.NET
Visual Basic
1
Posts
1
Posters
0
Views
1
Watching
-
If I have an IntPtr that points to a structure like this Public Structure VR Public X as Integer Public Y as Integer End Structure Is there a way in VB /VB.NET to refer to this memory in the code without using Marshall.PtrToStructure or Marshall.ReadInt16 and use a structure like code to access the memebers. In other words what I am looking for is something like this Dim MyVr as VR("at" MyIntPtr) Z = MyVr.X + MyVR.Y Any help appreciated. Victor Rubinstein