Click here to Skip to main content
15,884,099 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All

I Want To Make Program For Embeded System that Os Is Wince 6

I Have A Sampe Code That Work In FrameWork 3.5 But Does not Work In Compact


C#
inputStream = new BufferedStream(socket.GetStream());
            outputStream = new StreamWriter(new BufferedStream(socket.GetStream()));



This Error Is THis :

Error 2 The type or namespace name 'BufferedStream' could not be found (are you missing a using directive or an assembly reference?)



Why Exists Any way That Use "BufferedStream"??

Best Regard.
Posted

The Compact Framework is a limited subset of the full .net framework (because of size limitations) so there is bound to be features missing and BufferedStream is one of them.

Try using a normal Stream.
 
Share this answer
 
Resolve It

I Use NetworkStream Class And Solve This Problem.

C#
inputStream = socket.GetStream();

    outputStream = new StreamWriter(inputStream);
 
Share this answer
 
Thanks For Your Reply

Can You Help Me.

Haw To Use Stream Instade of BufferedStream

Because


C#
inputStream = new Stream(socket.GetStream());

          outputStream = new StreamWriter( new Stream(socket.GetStream()));


Have 2 Errors :

Cannot create an instance of the abstract class or interface 'System.IO.Stream' ...

Thanks
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900