Bad DLL calling convention
TOC
Collapse the table of content
Expand the table of content
This documentation is archived and is not being maintained.

Bad DLL calling convention 

Arguments passed to a dynamic-link library (DLL) must exactly match those expected by the routine. Calling conventions deal with number, type, and order of arguments. Your program may be calling a routine in a DLL that is being passed the wrong type or number of arguments.

To correct this error

  1. Make sure all argument types agree with those specified in the declaration of the routine that you are calling.

  2. Make sure you are passing the same number of arguments indicated in the declaration of the routine that you are calling.

  3. If the DLL routine expects arguments by value, make sure ByVal is specified for those arguments in the declaration for the routine.

See Also

Show:
© 2016 Microsoft