#Visual Basic Buffers
Suppose that I need to pass an ARRAY of pointers to memory buffers…
Obviously, this would not be easy from Visual Basic. Could the following
scheme be made to work?
Build a DLL with a call to pass a buffer and return a handle to that
memory, Handle[N] = GetMemoryHandle(MyBuffer).
Declare GetMemoryHandle(Buffer As Any) As Integer
Then for each buffer call it with as above and store the returned handles
in the Integer array. Then when I wanted to pass the array of buffers,
call the same DLL (another function) and it could associate the handles
with the actual addresses. Would memory be in the SAME PLACE or would this
fail? How could I do this if not?
Any thoughts or warnings???
There is 1 Reply.