If I have an unmanaged pointer and I want to transfer a specified number of bytes from that location to a Byte array, what is the best way to do this?
i.e. what is the equivalent of Marshal.PtrToString* methods but where the destination is a Byte()
Thanks
Marshal.Copyhas overloads for copying byte arrays to/from a pointer.By
Byte()is this interoperation with VB6 style COM? You why want to check the underlying COM type using the OLE-COM Viewer (included in the Windows SDK tools installed with VS) to open the VB created dll to look at that its typelib says.