[VC.NET] 如何修復 quot;C2039: lsquo;GetCurrentDirectoryA()rsquo; : is Not a Member of lsquo;System::IO::Directoryrsquo;quot;問題
int main(array<System::String ^> ^args) { Console::WriteLine(L"Dir: “+System::IO::Directory::GetCurrentDirectory()); // Error! return 0; }
#undef GetCurrentDirectory
int main(array<System::String ^> ^args) { Console::WriteLine(L"Dir: “+System::IO::Directory::GetCurrentDirectory()); return 0; }