[Winpcap-users] pcap_next_ex() Error (Visual Studio 6)
Isara Anantavrasilp
isara.a at gmail.com
Thu Jul 28 14:06:16 GMT 2005
Yeah, I just got the same problem, so I changed the declaration: "u_char
*pkt_data;" to "const u_char *pkt_data;"
It works just fine. However, I dont know if it is the correct way.
-- Isara
On 7/28/05, Eric Hansen <nightskywriter at gmail.com> wrote:
>
> Everytime I compile my program, I always end up with this error:
> " error C2664: 'pcap_next_ex' : cannot convert parameter 3 from 'unsigned
> char ** ' to 'const unsigned char ** ' "
> My code is exact to the example in the documentation (first I'm just
> trying to get it to work). Is there a fix for this error, or should I just
> skip using pcap_next_ex()?
>
> If I don't use this function, it compiles fine, without error.
>
> --
> <a href="http://silent-poet.vze.com">my poetry</a>.
>
> Hey baby, scratch your number on my electric cucumber[!]
> "Scream out loud, Let it out, Can't stand your LIBERTY!"
> _______________________________________________
> Winpcap-users mailing list
> Winpcap-users at winpcap.org
> https://www.winpcap.org/mailman/listinfo/winpcap-users
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.winpcap.org/pipermail/winpcap-users/attachments/20050728/3b7acaa3/attachment.html
More information about the Winpcap-users
mailing list