Home » U++ Library support » FileSel&FileList, Path » FileSelector - maximum number of file in one selection
Re: FileSelector - maximum number of file in one selection [message #38689 is a reply to message #38661] |
Sun, 06 January 2013 20:26 |
navi
Messages: 107 Registered: February 2012 Location: Sydney, Australia
|
Experienced Member |
|
|
Quote: | Question-1: Why hard-coded '32000'? according to MSDN nMaxfile is of DWORD type. my understanding is DWORD are typedef for 32bit Int. but even a signed 32bit Int can hold number as big as 2^31 = 2,147,483,647.
|
I think I have found my answer to question 1:
computer-programming-forum.com/82-mfc/3079430b194caa71.htm | "The Open File dialog itself is able to retrieve the complete list of
files when selected. However, when processing the list of files, the
length of the data processed is limited to 32K bytes due to a
limitation in the maximum data buffer allowed to be passed to
ExpandEnvironmentStrings. So limit was hit and all the selected files
were not open. There is no limit on number of files selected but the
limit on the ExpandEnvironmentStrings API.
|
Navi
[Updated on: Sun, 06 January 2013 20:35] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Mon May 06 13:31:07 CEST 2024
Total time taken to generate the page: 0.03218 seconds
|