我用DeleteFile and CopyFile方法。这些函数是否抛出异常或只是设置errno and lastError?我需要用以下内容包围这段代码吗try and catch?
DeleteFile
CopyFile
errno
lastError
try
catch
如果您指的是 Win32 API 函数,答案是否定的。 Win32 函数不会抛出异常,因为它是 C API。