RAD Studio
ContentsIndex
PreviousUpNext
E2341: Type mismatch in parameter 'number' in call to 'function' (C++)

Your source file declared the named function with a prototype, and the given parameter number (counting left to right from 1) could not be converted to the declared parameter type. 

When compiling C++ programs, this message is always preceded by another message that explains the exact reason for the type mismatch. 

That other message is usually "Cannot convert 'type1' to 'type2'", but the mismatch might be due to many other reasons.

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!