I have a class called User. I want to make a User object called myUser that can be access able to both windows forms that i have create. I have main.cpp which calls the creation of the first form
but i can't seem to access the Form1 object it creates. I also tried making a User object in the forms but i got this error
How do i define variables in the visual c++ forms and execute functions outside of their headers.
Code:
Application::Run(gcnew Form1());
Code:
private: User myUser;
Code:
error C4368: cannot define 'myUser' as a member of managed 'myProject::w_Name': mixed types are not supported
Comment