CFileDialog

来源:互联网 发布:协同过滤算法java实现 编辑:程序博客网 时间:2024/05/17 23:48

http://www.codeguru.com/forum/showthread.php?t=190010

 

当你用CFileDialog选择一个文件之后,你再对文件夹命名的话,那就会提示你文件夹被占用.

 

众里寻她千百度,终于在一个几角旮旯里面,找到问题的正解了.

 

不过说实话,CFileDialog的这种设计确实够变态的.

 

很有意思的是,文章中说道Even the famous IM tool, ICQ consists this problem too.

哈哈.

 

下面引用大牛的点睛之语:

The problem exists. It's because the folder in which you've selected some file becomes the current folder for your application. If you'd rename or move or delete this folder your application current folder would be invalid. You may solve this problem by saving your application current folder before the dalog shows and restore it after the dialog destoyed.

原创粉丝点击