function StrPCopy(Dest: PChar; const Source: string): PChar;将STRING类型转换为PChar类型。PChar以#0结尾 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 );将一个已存在的文件COPY至新文件。 BOOL说明为TRUE时,当新文件名存在是COPY失败,为FLASE时是覆盖。
copyfile是API函数用来拷贝文件
copyfile怎么工作??
CopyFile为Copy单个文件的API函数
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
);将一个已存在的文件COPY至新文件。
BOOL说明为TRUE时,当新文件名存在是COPY失败,为FLASE时是覆盖。