BOOL CopyFile( LPCTSTR lpExistingFileName, // pointer to name of an existing file LPCTSTR lpNewFileName, // pointer to filename to copy to BOOL bFailIfExists // flag for operation if file exists );
Windows API提供的CopyFile函数是三个参数。你检查一下工程中,是否有同名的自定义CopyFile函数?
LPCTSTR lpNewFileName, // pointer to filename to copy to
BOOL bFailIfExists // flag for operation if file exists
);
光标移动CopyFile按住Ctrl变成手型时点击CopyFile看是引用的哪个单元
Windows.CopyFile(...