在 CS下 调用 C++写的 ActiveX 组件 是正常的。但是 在BS下 用JS 调用 就出现以下异常。
各位帮忙瞧瞧。

解决方案 »

  1.   

    Debug Assertion Failed!!Program : c:\Program Files\Internet Explorer\iexplore.exe
    File: c:\program files\microsoft visual studio\vc98\atl\include\atlwin.h
    Line:374Expression : ::IsWindow(m_hWnd)For information on how your program can cause an assertion
    failure, see the Visual C++ documentation on asserts.(Press Retry to debug the application)
      

  2.   

    此ACTIVEX在客户端机器上注册了没有?
    如果注册了,那其它依赖库安装了没有?
    看你的错误信息是使用的DEBUG版的,所以依赖库也要安装DEBUG版本的。