Thanks for your answers but the mistakes you pointed out do not seem to be the crucial ones. I still get the same compiler error. And obviously the compiler stops even before it recognizes the second specification of a default argument in the Dialog constructor because I did not get an error for this.
The second mistake would 'only' cause a memory leak and no compiler error, right?
Bookmarks