ESP error

I am trying to use a VB COM dll from VC. I am using smart pointers to achieve this.
When I import the DLL file, everything works fine, but when I try to import the tlb file, it gives ESP error.
I generated the tlb fileby compiling the IDL file. I even prefixed every function definition with __stdcall, but to no avail.
Please help me out.


m-aronsson's picture

Hi !

Could some one please enlighten me on what this has to do with OpenCascade ?

Anyway, I don't have a clue to your problem, it's difficult without seeing the code, but the most common problem is the calling convention is wrong, but it look's like you have already checked this.