在borland c++buider中使用microsoft scriptcontrol Active X 控件的addobject方法中第二个参数的类型是IDispatch *类型,而不是其他编程环境中的object*类型。我使用强制转换(IDispatch *)可以编译通过,但在运行时显示“Project Project2.exe raised exception class EAccesssViolation with message'Access violation at address 40107902 in module 'vcl60.bpl'.Read of adddress 0070AC44'.Process stopped.Use Step or Run to continue.