I am using the following line of code to open a mutil-select file dialog.
The problem is when I select a folder with a large number of files and select "all" of the files I get strange results. Sometimes just some gibberish file names at the end part of the list, other times just a single high-ASCII character along with the null terminator.
Any ideas of how to stop this? Is there are buffer limit on the number of bytes that can be returned by this?
Code:
title = "Select Files for Delete" flags = %ofn_allowmultiselect Or %ofn_filemustexist Or %ofn_nodereferencelinks Or %ofn_pathmustexist Or %ofn_shareaware filter = Chr$("All Files (*.*)", 0, "*.*", 0, "Document Files", 0, "*.txt;*.doc;*.wpd;*.log", 0) Display Openfile hDlg, 60, 50, title, $Nul, filter, $Nul, $Nul, flags To result
Any ideas of how to stop this? Is there are buffer limit on the number of bytes that can be returned by this?
Comment