Arguments passed to a dynamic-link library (DLL) or Macintosh code resource routine must exactly match those expected by the routine. Calling conventions deal with number, type, and order of arguments. This error has the following causes and solutions:
Make sure all argument types agree with those specified in the declaration of the routine you are calling.
Make sure you are passing the same number of arguments indicated in the declaration of the routine you are calling.
If the DLL routine expects arguments by value, then make sure ByVal is specified for those arguments in the declaration for the routine.
The CDecl keyword applies only to the Macintosh.
For additional information, select the item in question and press F1 (in Windows) or HELP (on the Macintosh).