大家好我想从LRESULT
CALLBACK调用一个函数但是当我在LRESULT CALLBACK
LRESULT CALLBACK MYLowLevelKeyBoardProc(int nCode,WPARAM wParam,LPARAM lParam)
{
qDebug()<<"Key Pressed.";
do_eventFilter();
return CallNextHookEx(hHook, nCode, wParam, lParam);
}
bool MainWindow::do_eventFilter()
{
if (!_screenshotPending) {
_screenshotPending=true;
shootScreen();
tt = new MYThread(&scaledPixmap, socket);
QObject::connect(tt, SIGNAL(finished()), this, SLOT(quitThread()));
tt->start();
ui->label_3->setText(QString::number(i++));;
}
return false;
}
它给了我这个错误:
C3861: 'do_eventFilter': identifier not found
这意味着此功能无法知道此方法。