At Wednesday 9/8/2006 17:41, Tim Roberts 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.

But how can one detect that?
DoModal() returns 2 (IDCANCEL) in this case, how can be distinguished from the user pressing the Cancel button?



Gabriel Genellina
Softlab SRL

        
        
                
__________________________________________________
Preguntá. Respondé. Descubrí.
Todo lo que querías saber, y lo que ni imaginabas,
está en Yahoo! Respuestas (Beta).
¡Probalo ya! http://www.yahoo.com.ar/respuestas

_______________________________________________
Python-win32 mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-win32

Reply via email to