strpcopy字串拷贝
CopyFile文件复制

解决方案 »

  1.   

    StrPCopy用来拷贝生成API需要的格式
    copyfile是API函数用来拷贝文件
      

  2.   

    那经过前两个函数过后,strSour,strDest的内容是什么??
    copyfile怎么工作??
      

  3.   

    StrPCopy是用来把Pascal类型的string字符串转化为PChar类型(以#0结尾)
      

  4.   

    StrPCopy是用来把Pascal类型的string字符串转化为PChar类型
    CopyFile为Copy单个文件的API函数
      

  5.   

    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时是覆盖。