程序(简单的数据查询系统,Sql+delphi,有用到loadfromfile函数).昨天好好的,我改了一下目的文件夹的名字,今天就不能用了!!!!错误提示如下:
Debugger Exception Notification
Project Main.exe raised exception class EMCIDeviceError with message'找不到指定的文件.请确认路径与文件名是否正确.' Process stopped. Use step or Run to continue.
Debugger Exception Notification
Project Main.exe raised exception class EMCIDeviceError with message'找不到指定的文件.请确认路径与文件名是否正确.' Process stopped. Use step or Run to continue.
用ExtractFilePath去获得相对路径来完成
再用这个去拼路径。