当前位置: 代码迷 >> VC >> 请教 小弟我在VC.NET编译时的异常,请高手帮忙
  详细解决方案

请教 小弟我在VC.NET编译时的异常,请高手帮忙

热度:5626   发布时间:2013-02-25 00:00:00.0
请问 我在VC.NET编译时的错误,,请高手帮忙
我在方法里使这样一个实例 
System::IO::MemoryStream^ fs = gcnew System::IO::MemoryStream(new byte[3]);

然后报:
错误 19 error C2039: “MemoryStream”: 不是“`global namespace'”的成员 D:\WTest\WpfTestC\ControlDevice\ControlDevice.cpp 34 1 ControlDevice


请问这是什么问题啊 

我用 System::String^ str = "adsfasf"; 就没有问题,,

------解决方案--------------------------------------------------------
System::IO::MemoryStream^ fs = gcnew System::IO::MemoryStream();
fs.WriteLine("abc");

试试能否编译通过?

------解决方案--------------------------------------------------------
没有引入mscorlib.dll
  相关解决方案