Calling a cdecl DLL from VBA

G

Guest

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

Jake Marx

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]
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top