DLLs in Microsoft Windows support two main calling conventions:
_cdecl and _stdcall. Most 32-bit DLLs that are included with Microsoft
Windows support the _stdcall calling convention; the _cdecl calling convention is generally used by older DLLs.
If a DLL supports only the _cdecl calling convention, you cannot call
functions in that DLL from a Visual Basic macro in Microsoft Excel. For example, if your code includes the following function declaration
Declare Function memcpy& Lib "Crtdll" (ByRef Dest&, ByVal Src&, _
ByVal Count&)
and then attempts to call the memcpy& function, you will receive the
error message described in this article. This behavior occurs because
macros in Microsoft Excel 2000 cannot call functions that use the _cdecl
calling convention.
NOTE: In versions of Microsoft Excel earlier than Excel 97, you can
make calls to functions that use the _cdecl calling convention.