我用winpcap做了个截包工具,在windows自带的命令提示符可以实现。但是移植到VC应用程序中,想在ListCtrl中显示出包的内容时,程序段pcap_loop(adhandle, 50, packet_handler, NULL)编译不通过,说是
“error C2664: 'pcap_loop ' : cannot convert parameter 3 from 'void (void) ' to 'void (__cdecl *)(unsigned char *,const struct pcap_pkthdr *,const unsigned
char *) '
None of the functions with this name in scope match the target type”
本人菜鸟一个,全面换掉pcap_loop函数根本没办法,求达人帮忙处理。
“error C2664: 'pcap_loop ' : cannot convert parameter 3 from 'void (void) ' to 'void (__cdecl *)(unsigned char *,const struct pcap_pkthdr *,const unsigned
char *) '
None of the functions with this name in scope match the target type”
本人菜鸟一个,全面换掉pcap_loop函数根本没办法,求达人帮忙处理。
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货