Thread
:
Bad DLL Calling Convention (Error 49)
View Single Post
#
2
Posted to microsoft.public.excel.programming
Chip Pearson
external usenet poster
Posts: 7,247
Bad DLL Calling Convention (Error 49)
Shaikh,
Typically, you get a Bad Calling Convention error when arguments passed to
the DLL do not match the data type (long, integer, etc) or the reference
type (byval or byref) specified by the DLL.
Post your Declare statement and the code you are using to call the function.
--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com
"Shaikh" wrote in message
...
Hello,
I have the following strange problem.
I have an excel program that uses a dll. Every thing is working fine
(still now) with my old laptop. But giving me error 49 - Bad DLL Calling
Convention (Error 49) - in my new laptop. Files and dll are same in both the
machine.
Both laptops have windows XP
Old laptop has Office XP (Office 2002) and new laptop has Office 2003
I am suspecting something wrong in Office 2003. Can anybody please tell me
whats the problem?
-Thanks.
Reply With Quote
Chip Pearson
View Public Profile
Find all posts by Chip Pearson