|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Woking with IntPtr, how can I copy with offset?Hi,
I have to copy some data to an unmanaged array pointed by an IntPtr. The thing is Marshal.Copy only offers 4 parameters(not the actual parameters name but what I understood of them) : Source, srcOffset, Destination(the IntPtr), Length. I would need and offset in the destination, something like : Source, srcOffset, Destination(the IntPtr), dstOffset, Length. Is there a way I can handle that simply? because I can't just call Marshal.Copy(Source, srcOffset, Destination+dstOffset, Length). It does not work. Does somebody know how to achieve that? Thanks ThunderMusic "ThunderMusic" <NO.danlat.at.hotmail.com.SPAM> schrieb: '...(..., New IntPtr(Destination + Offset), ...)'.> I have to copy some data to an unmanaged array pointed by an IntPtr. The > thing is Marshal.Copy only offers 4 parameters(not the actual parameters > name but what I understood of them) : Source, srcOffset, Destination(the > IntPtr), Length. > > I would need and offset in the destination, something like : Source, > srcOffset, Destination(the IntPtr), dstOffset, Length. > > Is there a way I can handle that simply? because I can't just call > Marshal.Copy(Source, srcOffset, Destination+dstOffset, Length). It does > not work. -- M S Herfried K. Wagner M V P <URL:http://dotnet.mvps.org/> V B <URL:http://classicvb.org/petition/>
SQL Data Adapter
To VB or not to VB? To VB or not to VB? Excel automation??? VS2005 - Debug and Locked Files SqlConnection component in VB.2005 Setup and Deployment and Microsoft Jet OLE DB Provider Dir(strPath, +R +A +S +H) keeps returning hidden folders generics question Color theme of toolstrip and menustrip |
|||||||||||||||||||||||