Click here to Skip to main content
15,887,746 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
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
Posted
Updated 5-Apr-10 11:39am
v2

1 solution

It's N * (_MAX_PATH + 1) + 1.
N stands for N files selected.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900