OPENCV鼠标点击建立回调函数示例+C++调用Windows 控制台cmd并且返回调用结果示例--函数_popen()与fgets()
voidfun2(intevent,intx,inty,intflags,void*){if(event==EVENT_LBUTTONDOWN||event==EVENT_LBUTTONUP)AfxMessageBox(L"hellonicetomeetyou");if(event==EVENT_RBUTTONDOWN){stringstr="ipconfig/all";FILE*f;f=_pop