G
Guest
have a VB6 pgm, which used the following to read/write a blob of doubles
Private Declare Sub CopyMemory Lib "kernel32" Alias "RtlMoveMemory" (ByVal
pDest As Long, ByVal pSrc As Long, ByVal Length As Long)
CopyMemory pDest:=VarPtr(mRolloutQty(StartingMonthOffset)),
pSrc:=VarPtr(blobData(0)), Length:=AmountOfDataToCopy
Now I need to do the same in C#... since the VB6 pgm
has is continued to be used, I can't change that. Just
need to read and write in C# in the same way.
I've been looking into PInvoke... but not having luck in it.
John
Private Declare Sub CopyMemory Lib "kernel32" Alias "RtlMoveMemory" (ByVal
pDest As Long, ByVal pSrc As Long, ByVal Length As Long)
CopyMemory pDest:=VarPtr(mRolloutQty(StartingMonthOffset)),
pSrc:=VarPtr(blobData(0)), Length:=AmountOfDataToCopy
Now I need to do the same in C#... since the VB6 pgm
has is continued to be used, I can't change that. Just
need to read and write in C# in the same way.
I've been looking into PInvoke... but not having luck in it.
John