Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default 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?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 15
Default 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.
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Pivot Refresh Error when calling Excel Macro from VB.NET program amdefacto Excel Discussion (Misc queries) 0 July 6th 09 10:06 AM
modified following business day convention Don Excel Worksheet Functions 1 May 17th 07 01:32 PM
Naming convention for workbook names Barb Reinhardt Excel Discussion (Misc queries) 2 March 13th 07 12:29 AM
Anyway to set numerical column name as Exel convention? Frank Cao Excel Worksheet Functions 4 December 15th 05 08:02 PM
Bad DLL Calling Convention (Error 49) Shaikh Excel Programming 3 November 18th 03 10:18 PM


All times are GMT +1. The time now is 04:10 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"