E2081 'function' must be declared with two parameters (C++)

From RAD Studio