|
-
Oct 20th, 2007, 01:09 PM
#1
COM object needing a STREAM class
I'm using a COM object....there is a function I'm calling, that in C++/MFC takes in a IStream object.
I'm not sure if there is an equivalent class I could use to pass in as that parameter in C#??? any COM l33ts out there?
rate my posts if they help ya!
Extract thumbnail without reading the whole image file: (C# - VB)
Apply texture to bitmaps: (C# - VB)
Extended console library: (VB)
Save JPEG with a certain quality (image compression): (C# - VB )
VB.NET to C# conversion tips!!
-
Oct 21st, 2007, 12:34 AM
#2
Re: COM object needing a STREAM class
 Originally Posted by MrPolite
I'm using a COM object....there is a function I'm calling, that in C++/MFC takes in a IStream object.
I'm not sure if there is an equivalent class I could use to pass in as that parameter in C#??? any COM l33ts out there? 
nvm it turns out that you have to implement the istream interface... there isnt a class that implements it as far as i could figure out
rate my posts if they help ya!
Extract thumbnail without reading the whole image file: (C# - VB)
Apply texture to bitmaps: (C# - VB)
Extended console library: (VB)
Save JPEG with a certain quality (image compression): (C# - VB )
VB.NET to C# conversion tips!!
-
Oct 21st, 2007, 12:47 AM
#3
Re: COM object needing a STREAM class
The System.Runtime.InteropServices.ComTypes.IStream interface is the managed equivalent of that unmanaged interface. You need to define a class that implements that interface.
What is this object supposed to represent anyway? You may be able to inherit an existing managed class that provides much of the functionality already and simply provide methods that pass through to the existing methods.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|