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

MartyConnelly martyconnelly at shaw.ca
Wed Jul 4 21:08:29 CDT 2007


I thought it was dedclared this way

Imports System.IO
Dim s As System.IO.Stream

jwcolby wrote:

>Ron,
>
>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
>www.ColbyConsulting.com 
>-----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.
>
>Ron
>
>
>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.
>http://www.avast.com
>
>
>
>_______________________________________________
>dba-VB mailing list
>dba-VB at databaseadvisors.com
>http://databaseadvisors.com/mailman/listinfo/dba-vb
>http://www.databaseadvisors.com
>
>_______________________________________________
>dba-VB mailing list
>dba-VB at databaseadvisors.com
>http://databaseadvisors.com/mailman/listinfo/dba-vb
>http://www.databaseadvisors.com
>
>
>
>  
>

-- 
Marty Connelly
Victoria, B.C.
Canada




More information about the dba-VB mailing list