Member Avatar

Hello all . I have just started using the gcnew instead of new for the public ref class, that i have needed to learn for windows forms. I have a problem that shouldn't be as difficult as it is. I have a class that i made called vector2 . It is a vector with with slots in the method. It looks like this. [CODE] public ref class vector2{ public: System::String ^x; System::String ^y; System::Windows::Forms::PictureBox ^PictureBox; void Position(System::String ^ X, System::String^ Y){ x=X; y=Y; }; }; [/CODE] I do this to set the X Y values of the Position() Object reference …

Member Avatar
+0 forum 1

The End.