Forum Discussion
TanyaYatskovska
SmartBear Alumni (Retired)
nikki85, did you find an answer to your question? Please, share your solution with us.
nikki85
6 years agoContributor
- TanyaYatskovska6 years agoSmartBear Alumni (Retired)
Have you tried suggestions given here? What exactly doesn't work when applying them?
- nikki856 years agoContributor
yes , I tried suggestions given here, error message is still object doesn't support this property or method: 'Lib.add'
- TanyaYatskovska6 years agoSmartBear Alumni (Retired)
I don't see the
stdcall
calling convention in your original dll as Alex mentioned:AlexKaras wrote:
The DLL routine to be called must match the
stdcall
calling convention.At the same time, this is one of the requirements.
I'm not familiar with C++ very well - I suppose you should declare the add routine something like this:
int __stdcall add(int a, int b) { return a + b; }
If you modified the dll, it's worth posting the new one, as well as the updated code.
Related Content
- 7 years ago
- 7 years ago
- 5 years ago