reading/writing blobs

  • Thread starter Thread starter Guest
  • Start date Start date
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
 
ok, I finally got this...
[DllImport("kernel32.dll")]
public static extern int RtlMoveMemory(ref double pDest, ref byte pSrc, long
Length);

if you have another way to read a blob that was an array of doubles, let me
know.
 
Back
Top