Forum Discussion
TanyaYatskovska
Alumni
7 years agonikki85, did you find an answer to your question? Please, share your solution with us.
- TanyaYatskovska7 years ago
Alumni
Have you tried suggestions given here? What exactly doesn't work when applying them?
yes , I tried suggestions given here, error message is still object doesn't support this property or method: 'Lib.add'
- TanyaYatskovska7 years ago
Alumni
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.