[python-win32] win32ui.CreateFileDialog error
Tim Roberts
timr at probo.com
Wed Aug 9 22:41:57 CEST 2006
Tim Riley wrote:
> Can anyone explain to me why the following code will return a list if
> I select 12 files but will return None if I select 13?
It's an ugly but well-known limitation: the buffer passed to
CreateFileDialog is big, but not big enough. When you select more files
than will fit, the API returns an error, and the wrapper returns that
error instead of reallocating and retrying.
--
Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.
More information about the Python-win32
mailing list