View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Bill Grigg Bill Grigg is offline
external usenet poster
 
Posts: 7
Default call C++ DLL from VBA

All,

I have finally (once again) managed to call a DLL from VBA. However, the
only way I could get it to work was by building the DLL with the calling
convention "__stdcall". I would like to use the "__cdecl" calling convention
because the DLL is also called from Matlab. Does anyone know what to do? I am
stuck getting the error message:

Number 49:
Description: Bad DLL calling convention

TIA,

Bill