在Compact 3.5中使用BufferedStream类 [英] Use BufferedStream Class In Compact 3.5

查看:91
本文介绍了在Compact 3.5中使用BufferedStream类的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好



我想为嵌入式系统制作程序,因为Os is Wince 6



我有一个在FrameWork 3.5中工作的Sampe代码但是不能在紧凑的情况下工作





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


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







这个错误是这样的:



错误2找不到类型或命名空间名称'BufferedStream'(您是否缺少using指令或程序集引用?)







为什么存在任何使用BufferedStream的方式?



最好的问候。




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.

推荐答案

Compact Framework是完整.net框架的一个有限子集(由于大小限制),因此必然缺少功能, BufferedStream 是一个他们。



尝试使用正常的 Stream
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.


Resolve它



我使用NetworkStream类并解决这个问题。



Resolve It

I Use NetworkStream Class And Solve This Problem.

inputStream = socket.GetStream();

    outputStream = new StreamWriter(inputStream);


谢谢你的回复



你能帮助我。



Haw使用BufferedStream的Stream Instade



因为





Thanks For Your Reply

Can You Help Me.

Haw To Use Stream Instade of BufferedStream

Because


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

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





有2个错误:



无法创建实例抽象类或接口'System.IO.Stream'...



谢谢



Have 2 Errors :

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

Thanks


这篇关于在Compact 3.5中使用BufferedStream类的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆