Hi guys, i have a one byte array in c++ with /cli and return the next error:
error C2526: 'System::Collections::Generic::IList<T>:efault::get' : linking the C function can not return the class 'System::ArraySegment<T>' of C++
This is my code
Code:array<System::Byte>^ buffer = gcnew array<System::Byte>(1500); try { server->Receive(buffer); } catch ( SocketException^ e ) { Console::WriteLine( "{0} Error code: {1}.", e->Message, e->ErrorCode.ToString() ); return ( e->ErrorCode ); }




efault::get' : linking the C function can not return the class 'System::ArraySegment<T>' of C++
Reply With Quote