开发者

Copying a CFileDialog file

开发者 https://www.devze.com 2023-03-20 03:29 出处:网络
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?

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

精彩评论

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