-
__fastcall TScanWindow(TComponent* Owner, AnsiString ATitle,
MsgsArrayType *APlot, short ASensor, ConfigType *AConfig,
short AClearanceLevel, char *AFileName, float AMinTemp,
long ASerialNumber = 0, char *ADrive, char *APath, char Master = ' ');
The compiler asks me for DEFAULT VALUES for *ADrive and *APath any idea why this is?
Thanks for your help
Simon
-
All optional arguments must occur at the END of the argument list. And they must be called in order, for example:
Code:
void func(int x = 0; int y = 5; int z = 23);
func(5); // calls func(5,5,23);
func(5,3);//calls func(5,3,23);
So you couldn't supply only x and z.