问题描述
大家好
我想为嵌入式系统制作程序,因为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 :
Error2The 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.
推荐答案
inputStream = socket.GetStream();
outputStream = new StreamWriter(inputStream);
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类的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!