Compiler Error C2708
Visual Studio 2015
The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.
The latest version of this topic can be found at Compiler Error C2708.
identifier' : actual parameters length in bytes differs from previous call or reference
A __stdcall function must be preceded by a prototype. Otherwise, the compiler interprets the first call to the function as a prototype and this error occurs when the compiler encounters a call that does not match.
To fix this error add a function prototype.
Show: