mám to takto:
private: System::Void pictureBox1_Click(System::Object^ sender, System::EventArgs^ e)
{
openFileDialog1.ShowDialog();
string cesta = openFileDialog1.FileName
pictureBox1.ImageLocation = cesta;
}
a vypísalo to nejaké chyby
Error 1 error C2065: 'openFileDialog1' : undeclared identifier c:\users\brano\desktop\aaa\aaa\Form1.h
Error 2 error C2228: left of '.ShowDialog' must have class/struct/union c:\users\brano\desktop\aaa\aaa\Form1.h
Error 3 error C2065: 'string' : undeclared identifier c:\users\brano\desktop\aaa\aaa\Form1.h
Error 4 error C2146: syntax error : missing ';' before identifier 'cesta' c:\users\brano\desktop\aaa\aaa\Form1.h
Error 5 error C2065: 'cesta' : undeclared identifier c:\users\brano\desktop\aaa\aaa\Form1.h
Error 6 error C2065: 'openFileDialog1' : undeclared identifier c:\users\brano\desktop\aaa\aaa\Form1.h
Error 7 error C2228: left of '.FileName' must have class/struct/union c:\users\brano\desktop\aaa\aaa\Form1.h
Error 8 error C2228: left of '.ImageLocation' must have class/struct/union c:\users\brano\desktop\aaa\aaa\Form1.h
Error 9 error C2065: 'cesta' : undeclared identifier c:\users\brano\desktop\aaa\aaa\Form1.h