C++ Builder XE10 ChDir如何判断当前文件路径是否正确源码?
void __fastcall TForm1::Button1Click(TObject *Sender){ Edit2->Text = GetCurrentDir(); //获取当前路径 FileListBox1->Directory = GetCurrentDir(); DirectoryListBox1->Directory = GetCurrentDir(); try { System::ChDir(Edit2->Text); ...
复制链接