![]() |
Error 49: Bad .dll Calling Convention
I have been successfully using dll's in VBA 6.0. However,
the same dll's give the subject error when run in VBA 6.3. Any suggestions? |
Error 49: Bad .dll Calling Convention
"Jarrett Sadowsky" wrote in news:121301c3df88
: I have been successfully using dll's in VBA 6.0. However, the same dll's give the subject error when run in VBA 6.3. Any suggestions? VBA can only successfully call functions that are declared as "__stdcall". If the function insside your DLL was declared as "__cdecl" (the default) you will always get this error message. The workaround is to create a __stdcall function that calls the __cdecl function. -- My email address has an extra @ (spell it out) and an extra invalid. Please remove them if you are not a spammer or list broker and want to reply. |
All times are GMT +1. The time now is 07:56 PM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com