all groups > dotnet interop > february 2006 >
You're in the

dotnet interop

group:

Returning binary data from .Net class to through COM


Returning binary data from .Net class to through COM Jeremy Lloyd
2/26/2006 8:26:28 PM
dotnet interop:
Hi

I would be grateful if someone could point me in the right direction.

I have a COM callable class. In that class I have binary data in a
MemoryStream. How do I return that binary data to the caller? The calling
language is VBS.

Many thanks
Jeremy

Re: Returning binary data from .Net class to through COM Dmytro Lapshyn [MVP]
3/1/2006 12:00:00 AM
Hi,

I'm afraid your only option here is a VARIANT array of bytes.

[quoted text, click to view]
AddThis Social Bookmark Button