之前WIN7 32位,VS2010,程序正常运行。移植到WIN7 64位,VS2013,原程序运行后,无数据显示,调试发现回调函数没有执行。pcap_loop(adhandle, -1, dispatcher_handler, NULL) 第三个参数为回调函数 dispatcher_handler,原型为void dispatcher_handler(u_char *state, const pcap_pkthdr *header, const u_char *pkt_data)