Calling a cdecl DLL from VBA

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Does anyone know how to call a DLL from VBA if the DLL uses a 'cdecl' calling
convention?
 
Hi Tommysaurus,
Does anyone know how to call a DLL from VBA if the DLL uses a 'cdecl'
calling convention?

Here's a KB article that addresses this:

http://support.microsoft.com/default.aspx?scid=kb;en-us;Q153586

Sounds like you'll either have to either 1) recreate the DLL using the
_stdcall calling convention OR 2) create a wrapper DLL using the _stdcall
calling convention.

--
Regards,

Jake Marx
MS MVP - Excel
www.longhead.com

[please keep replies in the newsgroup - email address unmonitored]
 
Back
Top