[python-win32] Re: win32ui.CreateFileDialog error

Roger Upole rwupole at msn.com
Thu Aug 10 03:43:36 CEST 2006


You can call win32gui.CommDlgExtendedError() to find
the reason why it failed.  If the buffer size is actually the
problem, it will return winerror.FNERR_BUFFERTOOSMALL
(12291).

win32gui.GetOpenFileNameW creates the same type of dialog,
and you can use the MaxFile argument to specify a large buffer
size if needed.

     Roger



More information about the Python-win32 mailing list