I am consuming a COM object written in Delphi that requires a Stream.
The interface generated by VS requests a parameter of type “object”
comReader.LoadFromStream(object stream)
When I use a FileStream or MemoryStream I get an “Invalid argument”-exception.
How do I marshal a stream for COM consummation?
I think you should create wrapper for .Net Stream that implements COM
IStreaminterfaceSee this article (There is partly implementation)