我想动态打开一张BMP图片,然后将他重新命名拷贝到一个指定的目录。
该怎么做啊。
由于初学,请详细告诉好吗?谢谢!
然后删除他怎么做呢?

解决方案 »

  1.   

    BOOL CopyFile(
    LPCTSTR lpExistingFileName, 
    LPCTSTR lpNewFileName, 
    BOOL bFailIfExists ); Parameters
    lpExistingFileName 
    [in] Long pointer to a null-terminated string that specifies the name of an existing file. 
    lpNewFileName 
    [in] Long pointer to a null-terminated string that specifies the name of the new file. 
    bFailIfExists 
    [in] Boolean that specifies how this operation is to proceed if a file of the same name as that specified by lpNewFileName already exists. If this parameter is TRUE and the new file already exists, the function fails. If this parameter is FALSE and the new file already exists, the function overwrites the existing file and succeeds. DeleteFile
    The DeleteFile function deletes an existing file. BOOL DeleteFile(
      LPCTSTR lpFileName   // file name
    );
      

  2.   

    我想动态打开一张BMP图片,然后将他重新命名拷贝到一个指定的目录。上面是删除和复制?我看不懂,指教啊。谢谢
      

  3.   

    MoveFile("c:\\a.bmp", "d:\\a.bmp");