I am having a dialog box opens that lets you select a picture and then copy that picture to another folder but the problem is that i am having an error that says that i can't convert a System::String to a LPCTSTR.
I searched this subject on google but i spent the whole day trying to figure it out.
How should i convert a System::string to a LPCTSR?

if ( openFileDialog1->ShowDialog() == System::Windows::Forms::DialogResult::OK )
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.