[Winpcap-users] Re: [error]'pcap_dump' : cannot convert parameter 1 from 'struct pcap_dumper *' to 'unsigned char *'

Guy Harris guy at alum.mit.edu
Sat May 13 18:49:11 GMT 2006


joe kibz wrote:

> the one error
>           cannot convert parameter 1 from 'struct pcap_dumper *' to 
> 'unsigned char *'

What happens if you explicitly cast the argument to "unsigned char *"?

	pcap_dump((unsigned char *)dumpfile, header, pkt_data);


More information about the Winpcap-users mailing list