[dba-VB] VB.Net - System.IO.Stream

jwcolby jwcolby at colbyconsulting.com
Wed Jul 4 18:48:37 CDT 2007


Unfortunately intellisense is telling me that a type STREAM is required, and
furthermore if I try to pass any of the subtypes the DLLs class constructor
refuses to accept it.  It seems that I cannot do a new on it but I may be
able to somehow dim an instance of the base class.  

John W. Colby
Colby Consulting
-----Original Message-----
From: dba-vb-bounces at databaseadvisors.com
[mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Ron Allen
Sent: Wednesday, July 04, 2007 1:35 PM
To: jwcolby
Subject: Re: [dba-VB] VB.Net - System.IO.Stream

Hi John,

Stream is an abstract class so an instance can't be created. You need to
create an instance of a specific type of stream then pass that. I've never
used it, but I suspect what you need is a MemoryStream, you might want to
check into that.


Wednesday, July 4, 2007, 10:24:23 AM, you wrote:

> I am working with a library that wants a stream passed in.  NOT a 
> StreamReader, a plain old stream.  According to the docs, Stream is 
> supposed to be a member of System.IO but it does not appear to be.  
> According to Microsoft's docs, Stream is supposed to be the base class 
> and is supposed to be accessible.  I cannot get at it.

> Does anyone know how to reference System.IO.Stream?

avast! Antivirus: Outbound message clean.
Virus Database (VPS): 000754-0, 07/04/2007 Tested on: 7/4/2007 12:34:49 PM
avast! - copyright (c) 1988-2007 ALWIL Software.

dba-VB mailing list
dba-VB at databaseadvisors.com

More information about the dba-VB mailing list