"Bob Barrows [MVP]" wrote:
Gunnar Liknes wrote:
I am trying to access COM component - method that takes a IStream
(ByRef) parameter
from ASP (Not ASP.NET).
So far I have had no luck and google drowns my search with ASP.NET
examples...
I mange to create the object and call methods that returns strings
(BSTR) like this
Dim Svr
Set Svr = CreateObject(AppID)
Response.write(Svr.Method1)
The second method I need to call takes two parameters:
Method2(ID:Int, ByRef Stream:IStream)
Can anyone give me some hints on how to call this method from ASP?
http://support.microsoft.com/default...b;EN-US;244012
http://support.microsoft.com/default...b;EN-US;197956
Thank you for a quick response:-)
I think I use the correct calling convention now, however my problem is (I
think)
that I cant figure out how to create the IStream Interface.
Do I have to use CreateObject for that?
I was thinkning about somethnig like:
Dim MyStream
Set MyStream = Server.CreateObject("Something.IStream") or
Set MyStream = Server.CreateObject("Something.MemoryStream")
and then
Svr.GePicture (1), MyStream
' The second parameter is actually IUnknown ** But the implementation uses
'QueryInterface to obtain a IStream interface from it.
Response.BinaryWrite(MyStream, MyStream.Size)
Am I near something here?
Gunnar