It is a good thing that you are questioning what people tell you. Just to clarify. If you write something like that in the .cpp file it is as a reminder that the parameter is defaulted to NULL CCodeProject_Dialog2Dlg::CCodeProject_Dialog2Dlg(CWnd* pParent /*=NULL*/) If you look in the .h file you will see the constructor defined something like CCodeProject_Dialog2Dlg(CWnd* pParent = NULL) Note if you have more than one parameter, all parameters after the first one that you default must have default values. i.e These are OK Function(int *A = NULL, int *B = NULL, int *C = NULL) Function(int *A, int *B = NULL, int *C = NULL) Function(int *A, int *B, int *C = NULL) These are not Function(int *A = NULL, int *B, int *C = NULL) Function(int *A = NULL, int *B, int *C) Function(int *A, int *B = NULL, int *C) 7stud wrote: Thanks for your help. Your welcome Ant. I'm hard, yet soft.
I'm coloured, yet clear.
I'm fruity and sweet.
I'm jelly, what am I? Muse on it further, I shall return! - David Williams (Little Britain)