I faced a mistake in the code below:
if (folderBrowserDialog1->ShowDialog() == DialogResult::OK )
{
}
The mistake is in DialogResult::OK ! The compiler says error C2065: 'OK' : undeclared identifier
?
I already did using namespace System::IO;
DialogResultdoesn’t seem to be in theSystem::IOnamespace–were you looking for the one underSystem::Windows::Forms? When in doubt, search MSDN.