我在下面的代碼遇到一個錯誤:的DialogResult :: OK不起作用
if (folderBrowserDialog1->ShowDialog() == DialogResult::OK)
{
}
錯就錯在DialogResult::OK
!編譯器說error C2065: 'OK' : undeclared identifier
? 我已經做了using namespace System::IO;
我在下面的代碼遇到一個錯誤:的DialogResult :: OK不起作用
if (folderBrowserDialog1->ShowDialog() == DialogResult::OK)
{
}
錯就錯在DialogResult::OK
!編譯器說error C2065: 'OK' : undeclared identifier
? 我已經做了using namespace System::IO;
DialogResult
似乎並不處於System::IO
命名空間 - 您尋找的System::Windows::Forms
下一個?如有疑問,請搜索MSDN。