Compiler Error C2562

'identifier' : 'void' function returning a value

The indicated function was declared as a void function but returned a value.

This error can be caused by an incorrect function prototype. If the function returns a value, the return type must be specified in the function declaration.