请问 我在VC.NET编译时的错误,,请高手帮忙
我在方法里使这样一个实例
System::IO::MemoryStream^ fs = gcnew System::IO::MemoryStream(new byte[3]);
然后报:
错误19error C2039: “MemoryStream”: 不是“`global namespace'”的成员D:\WTest\WpfTestC\ControlDevice\ControlDevice.cpp341ControlDevice
请问这是什么问题啊
我用 System::String^ str = "adsfasf"; 就没有问题,,
[解决办法]
System::IO::MemoryStream^ fs = gcnew System::IO::MemoryStream();
fs.WriteLine("abc");
试试能否编译通过?
[解决办法]
没有引入mscorlib.dll