Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Bad DLL calling convention
Collapse the table of content
Expand the table of content

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.

Community Additions

ADD
Show:
© 2015 Microsoft