1

私の MFCActiveXはシンプル アクティブです。ActiveX私は Visual Studio 2008 のMFC テンプレートで作成しています。私は call show message dialog when ActiveXdestroy を追加してテストしました。

CmfcActivexCtrl::~CmfcActivexCtrl()
{
    AfxMessageBox(_T("destroy"));
}

私はこれを埋め込む私のページを開きますActiveX。他のアドレスに移動した後。

  1. skype-addon を無効にすると、「destroy」というメッセージが表示されます。ActiveX が破壊されました
  2. skype-addon を有効にすると、「destroy」というメッセージが表示されません。ActiveX は破棄しません。

私は ie7 と ie8 でテストします。skypeのバグかMFCのバグです。解決策は何ですか?

4

1 に答える 1

0

Perhaps with the Skype plugin loaded, your ActiveX control is not getting unloaded until later. Perhaps you should put all of your clean up in another event handler, like before close?

于 2010-07-13T17:58:13.847 に答える