Discussion:
wxMkdir and the wx error dialog
(too old to reply)
Mike H.
2009-05-21 14:54:00 UTC
Permalink
Hi,

I want to use wxMkdir to create a folder. However, if the user doesn't
have privileges to do that, a wx error dialog is displayed. The same if
I try to copy a file to a place where the user isn't authorized to put
it. Is it possible to switch off the dialog so I can make a silent exit
without displaying it?

Regards
Mike
Carl Godkin
2009-05-21 16:14:07 UTC
Permalink
Hi,
I want to use wxMkdir to create a folder. However, if the user doesn't have
privileges to do that, a wx error dialog is displayed. The same if I try to
copy a file to a place where the user isn't authorized to put it. Is it
possible to switch off the dialog so I can make a silent exit without
displaying it?
Change the logging, perhaps by using wxLogNull. I do this all the time if I
don't want
wx to report my errors.

carl

Loading...