Jump to content
СофтФорум - всё о компьютерах и не только

error C2664 в Visual Studio

Recommended Posts

Пишу на с++ в Visual Studio 2005.

При компиляции выдает ошибку

error C2664: 'pcap_loop' : cannot convert parameter 3 from 'int (__cdecl *)(u_char *,const pcap_pkthdr *,const u_char *)' to 'pcap_handler'	None of the functions with this name in scope match the target type

на вызов функции:

pcap_loop(fp, 0, got_packet, NULL);...int got_packet(u_char *args, const struct pcap_pkthdr *header, const u_char *packet)

Собственно, что делать?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...