Fatal Error C1058

compiler limit : too many formal arguments

The function declaration had too many formal arguments.

Reduce the number of arguments by passing structures or pointers to structures.