I am trying to write a metro style application to read data from a TCP stream. I am using Visual C++.
The problem is that the ASStream extension method cannot be found.
I have the following directives:
#using <System.Runtime.InteropServices.WindowsRuntime.dll>
using namespace System::IO;
using namespace System::Runtime::InteropServices::WindowsRuntime;
ASStream is supposed to be part of WindowsRuntimeBuffer class in the System.Runtime.InteropServices.WindowsRuntime namespace. But object browser clearly does not show that class in the System.Runtime.InteropServices.WindowsRuntime namespace.
Only native C++ is supported for Metro style applications. C++/CLI is not supported and the .NET Framework is not directly supported from a native C++ component.