tags:

views:

49

answers:

1

Hi folks,

I am getting this run time error Run-Time Check Failure #0 - The value of ESP was not properly saved across a function call. This is usually a result of calling a function declared with one calling convention with a function pointer declared with a different calling convention.

when using IID_IWebBrowser2 interface of CLSID_InternetExplorer. This error happens when I am calling the navigate method.

PS: The COM client is written in C.

Please help...

Thanks in Advance, -Mani.

A: 

The problem is that the client (your program) uses the call convention different from what the server (COM object) expects. You need to check the COM interface methods declaration and adjust them accordingly.

See this question for a solution of in fact the same problem.

sharptooth
Thanks. I have solved the problem.-Mani.
Manigandan