[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Access Canvas from Modeless Dialog?



| 
| ! ETdlg.h:14: default argument missing for parameter 3 of
| `ETDialog::ETDialog(class vBaseWindow *, char * = "Erase Tapes", class
| ETTextCanvasPane *)'
| 
| Note that my ETdlg.h contains:
|         ETDialog(vBaseWindow* bw, char* title = "Erase Tapes", ETTextCanvasPane*
| _ETcp);
| 


In C++, arguments with default values must be "right-justified", ie., if one arg has a default value, then all args to the right must also have default values.

The following will work:

ETDialog(vBaseWindow* bw, ETTextCanvasPane* _ETcp, char* title = "Erase Tapes");



Reply to: