Hi.
I am trying to pass in a byte array of characters into a COM function. The
3rd party has already supplied the proper RCW but I cannot seem to cast my
data type into something that will work with their function. Here is the
code.
string xml = GetXML(path);
System.Text.ASCIIEncoding encoding = new System.Text.ASCIIEncoding();
byte[] bxml = encoding.GetBytes(xml);
IMemoryBlobStream memblobstream = new MemoryBlobStreamClass();
memblobstream.ImportFromMemory(ref bxml, bxml.Length);
The ImportFromMemory function signature is
ImportFromMemory(ref byte, uint)
How might I create the proper datatype contain my xml (string) to the ref
byte that the function requires?
Thanks.