开发者

Copying a CFileDialog file

I'm using a CFileDialog dialog box to open a file in my program. When this file gets opened, I'd also like to save a copy of that file into the directory of my program. How can I do this?

This is how I' m opening the file:

CFileDialog fileDlg(TRUE, NULL, NULL, OFN_FILEM开发者_JAVA技巧USTEXIST | OFN_HIDEREADONLY, "All Files (*.*)|*.*||", this);

Thanks for any help.


The file dialog doesn't copy files. After it returns, you get the selected file, then use regular file copy API to copy the file.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜