在MFC应用程序中,将文件从一个目录复制到另一个目录最简单的方法是什么? [英] In an MFC application, what's the easiest way to copy a file from one directory to another?

查看:134
本文介绍了在MFC应用程序中,将文件从一个目录复制到另一个目录最简单的方法是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我应该创建两个CFile对象并将其中一个字符复制到另一个字符中?或者是有什么在图书馆,这将为我做这个?

解决方案

我会只使用 CopyFile Win32 API函数,但示例代码在 CFile :: Open 文档显示如何使用CFile复制文件(使用漂亮很多你建议的方法)。


Should I create two CFile objects and copy one into the other character by character? Or is there something in the library that will do this for me?

解决方案

I would just use the CopyFile Win32 API function, but the example code in the CFile::Open documentation shows how to copy files with CFile (using pretty much the method you suggest).

这篇关于在MFC应用程序中,将文件从一个目录复制到另一个目录最简单的方法是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆