Record copied to memory stream
Posted on 1998-12-05
My program first stores values in a record type which contains integers and strings. Because this record is passed to an ISAPI program, the record is loaded into a memorystream using TMemoryStream.WriteBuffer. This happens on the client size.
On the server side (the ISAPI DLL), the bytes are then stored in a Pointer type :
lpbData: Pointer; // pointer to cbAvailable bytes
I then want to copy what is in lpbData back into a record identical to the one at the client site.
What is the best way to do that to ensure the record at the server is intact ?