Forum Discussion
TanyaYatskovska
7 years agoSmartBear Alumni (Retired)
nikki85, did you find an answer to your question? Please, share your solution with us.
nikki85
7 years agoContributor
- TanyaYatskovska7 years agoSmartBear Alumni (Retired)
Have you tried suggestions given here? What exactly doesn't work when applying them?
- nikki857 years agoContributor
yes , I tried suggestions given here, error message is still object doesn't support this property or method: 'Lib.add'
- TanyaYatskovska7 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
- 12 years ago
- 8 years ago
Recent Discussions
- 14 hours ago
- 2 days ago