有人可以解释CFileDialog的MSDN文档吗? [英] Can someone explain MSDN doc of CFileDialog?

查看:96
本文介绍了有人可以解释CFileDialog的MSDN文档吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

http://msdn.microsoft.com/zh-cn/library/dk77e5e7(VS.80).aspx

上面的文档指出,启用OFN_ALLOWMULTISELECT时,要求用户提供文件名缓冲区.下一段说明缓冲区不能大于2048个字节.下一段说明有关将m_ofn.nMaxFile设置为缓冲区中的字节数(假定最大为2048)的信息.接下来是一个示例,其中缓冲区的大小指定为非常大".

我不了解您,但就记忆而言,我认为2048不是很大的数字.那么限制是2048还是很大"?还是2048的限制完全指的是其他东西?我想念什么?

谢谢

http://msdn.microsoft.com/en-us/library/dk77e5e7(VS.80).aspx

The above documentation states that when enabling OFN_ALLOWMULTISELECT, the user is required to supply a filename buffer. The next paragraph states that the buffer cannot be larger than 2048 bytes. The next paragraph explains about setting m_ofn.nMaxFile to the number of bytes in your buffer (presumable a max of 2048). Next comes an example where the size of the buffer is given as "very large number".

I don''t know about you but as far as memory goes I don''t consider 2048 to be a very large number. So is the limit 2048 or is it a "very large number"? Or does the limit of 2048 refer to something else entirely? What am I missing?

Thanks

推荐答案

它是N * (_MAX_PATH + 1) + 1.
N代表所选的N个文件.
It''s N * (_MAX_PATH + 1) + 1.
N stands for N files selected.


这篇关于有人可以解释CFileDialog的MSDN文档吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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