我在使用 CLSID_InternetExplorer 的 IID_IWebBrowser2 接口(interface)时遇到此运行时错误。
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.
当我调用 navigate 方法时发生此错误。
最佳答案
问题在于客户端(您的程序)使用的调用约定与服务器(COM 对象)所期望的不同。您需要检查 COM 接口(interface)方法声明并相应地调整它们。
参见 this question实际上是同一问题的解决方案。
关于c - 运行时检查失败 #0,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1404630/