I am trying to learn C++, and it seems a bit like C#, but I don't get how I am supposed to make variables, and can't see the problem.
public ref class MyForm : public System::Windows::Forms::Form
{
private: TcpListener tcplisten;
private: IPEndPoint adress;
public:
    MyForm(void)
    {
        InitializeComponent();
    }
protected:
    ~MyForm()
    {
        if (components)
        {
            delete components;
        }
    }
When I look at C#, it should be that I write the variables above the MyForm(void), but that doesn't seem to be the case here, I get the error:
System::Net::IPEndPoint::IPEndPoint' : no appropriate default constructor available
And when searching for it, I don't see the problem I am facing, but other stuff, so I am guess I am implementing this wrong.
 
     
    