Hi all, I am learning C++/CLI and stuck with a problem. I have a header file that looks like
typedef struct _DATA_INFO {
WORD ONE
WORD TWO
WORD THREE
} DATA_INFO
public ref class ManagedDataInfo
{
DATA_INFO* info;
public ManagedDataInfo()
{
info=new DATA_INFO();
}
public void Write(Stream^ stream)
{
// stream.Write(content of info)
// here i want to write content of info to stream
}
}
Here I want to copy the content of info to the stream in the Write method but stuck how to do that.