写了一个快捷键程序,IE报错:'this->get_LocationURL((BSTR*)&LocationURL)' 被调用的对象已与其客户端断开连接。
Cbfan 2004-02-18 08:33:38 程序是这样的,当用户按住CTRL键时,停止屏蔽广告窗口(就是想Google的搜索工具条一样的功能),但是多次测试,有的时候IE出错:
'this->get_LocationURL((BSTR*)&LocationURL)' 被调用的对象已与其客户端断开连接。
代码:
void __fastcall TForm1::FormCreate(TObject *Sender)
{
……
HotCtrl=17;
……
}
________________________________________________________________
void __fastcall TForm1::FormShow(TObject *Sender)
{
……
RegisterHotKey(Handle, 0x1006, MOD_CONTROL, HotCtrl);
……
}
________________________________________________________________
void __fastcall TForm1::WMHotKey(TMessage &Msg)
{
……
if(Msg.LParamHi==HotCtrl)
{
BlockAD=false;
Reset();
BlockAD=true;
Reset();
}
}