A Alek Davis Dec 2, 2003 #2 You must specify the default value in the function (constructor) prototype defined in the header file, e.g. // In header file: ... int DoSomething(int nRequired, int nOptional = 0); ... // In source file: int MyClass:oSomething(int nRequired, int nOptional) { ... } All optional parameters must be at the end. Alek
You must specify the default value in the function (constructor) prototype defined in the header file, e.g. // In header file: ... int DoSomething(int nRequired, int nOptional = 0); ... // In source file: int MyClass:oSomething(int nRequired, int nOptional) { ... } All optional parameters must be at the end. Alek