I have an excel VBA macro that calls a function in a C++ DLL. The declaration is
Public Declare PtrSafe Function XXXX Lib "xxxx.dll" (...