|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Copying Memory to an ArrayI don't know if I need to copy the memory to an Array (thats what I would have done it in vb6), I just need to be able to read/access it. I have a Callback function that is handing me a block of memory - Function BufferCB(ByVal SampleTime As Double, ByVal pBuffer As IntPtr, ByVal BufferLen As Integer) As Integer Implements _ISampleGrabberCB.BufferCB SyncLock Me Dim BAR() As Byte ReDim BAR(BufferLen) ' This creates the buffer but I need to copy ' the data from the memory location in pBuffer ' pointer. End SyncLock Return 0 End Function Thanks Again. "Si" <Spam@scumlite.co.uk> schrieb: Check out the members of 'System.Runtime.InteropServices.Marshal'.> I don't know if I need to copy the memory to an Array (thats what I > would have done it in vb6), I just need to be able to read/access it. -- M S Herfried K. Wagner M V P <URL:http://dotnet.mvps.org/> V B <URL:http://dotnet.mvps.org/dotnet/faqs/> Sorted, Thank you.
Herfried K. Wagner [MVP] wrote: Show quoteHide quote > "Si" <Spam@scumlite.co.uk> schrieb: >> I don't know if I need to copy the memory to an Array (thats what I >> would have done it in vb6), I just need to be able to read/access it. > > Check out the members of 'System.Runtime.InteropServices.Marshal'. >
VB2005 registering a dll
How do I sort an ArrayList of objects by a property value Deleting directory path and files. VB.net 2003 textbox delete and undo Problem with RadioButton How to prevent file to be copied How can I use the Toolbox Control in my Application? Parsing HTML Tables Upgrade for Deployment Purposes Smart Device: Multiple Forms |
|||||||||||||||||||||||