reading/writing blobs

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
 
G

Guest

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top