I've got a function which simply has the following code:
1 2 3 4 5 6 7 8 9 10
MT4_EXPFUNC void __stdcall test(void)
{
Application::EnableVisualStyles();
Application::SetCompatibleTextRenderingDefault(false);
// Create the main window and run it
Form ^ frm = gcnew Form();
Application::Run(frm);
//return 0;
}
This does what is expected - it opens the form. Now what I want to do after Application::Run(frm) is return the values of each TextBox.
I assume something like
char bla = frm->textbox1->Text
However, this errors with
1 2 3
1>test4.cpp(20): error C2039: 'textbox1' : is not a member of 'System::Windows::Forms::Form'
1> c:\program files (x86)\reference assemblies\microsoft\framework\.netframework\v4.0\system.windows.forms.dll : see declaration of 'System::Windows::Forms::Form'
1>test4.cpp(20): error C2227: left of '->Text' must point to class/struct/union/generic type
Can someone help me get the value of the text box into my function?