I'm trying to use a C++ COM DLL which provides a Load function taking IStream as parameter. I'm trying to get the stream from a Database OLE object and then pass it to the function, but the OLE stream seems not being recognized:
ole_Stream = CREATE OLEObject
ole_Stream.ConnectToNewObject( "ADODB.Stream" )
ole_Stream.Open()
ole_Stream.Type = 1
....
ole_DLL.Load( ole_Stream )
this fails, because ole_Stream here seems not compatible with IStream.