2009-12-21 08:52 AM
calling STBLLIB.DLL functions from Visual Basic for Applications
2011-05-17 04:35 AM
Hi,
I would like to call functions provided by STBLLIB.DLL from Visual Basic for Applications. However, when calling functions that require parameters VBA consistently returns error message 49: ''Bad DLL calling convention.'' I think the data type of the parameters is wrong (e.g. using Long when Integer is expected). In the msdn library for Microsoft Office XP Developer is stated: ''In recent versions, however, VBA converts all integer values to type Long, even if they are declared as type Integer.'' Does anyone know a way around this? Thanks!