|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now! |
|
#1
|
|||
|
|||
|
ESP error
Hi,
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. \N |
|
#2
|
|||
|
|||
|
i never encountered a problem like that (nor ever used VB), but iirc MS likes to implement COM functions as __fastcall and __stdcall is used for DLLs, maybe this helps?
ESP errors can be caused by wrong interface implementation like that. Itīs just a guess and it could also be completely wrong. I didnīt do much work with MS-VC yet.
__________________
-- Manuel Hirsch - Linux, FreeBSD, programming, administration articles, tutorials and more. |
|
#3
|
|||
|
|||
|
I've gotten ESP errors when trying to call interface methods incorrectly, supplying bad arguments. I've never worked with VB and COM before though, so who knows. Are you sure none of your methods take or return invalid data types? Does VB support these types (I'm not familiar with the native VARIANT types VB supports).
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages > C Programming > ESP error |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|