<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:±¼¸²
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>It may be forward declarition error.<div><br></div><div>Declear the function before using the function(at the top of the source code).<br><div><br></div><div>void packet_handler(u_char *param, const struct pcap_pkthdr *header, const u_char *pkt_data);<br><br><div><hr id="stopSpelling">From: bishnu.maharjan2012@hotmail.com<br>To: winpcap-users@winpcap.org<br>Date: Tue, 4 Mar 2014 17:43:05 +0000<br>Subject: [Winpcap-users] pcap_loop not working<br><br><style data-externalstyle="true">
.ExternalClass p.ecxMsoListParagraph, .ExternalClass li.ecxMsoListParagraph, .ExternalClass div.ecxMsoListParagraph {
}
.ExternalClass p.ecxMsoListParagraphCxSpFirst, .ExternalClass li.ecxMsoListParagraphCxSpFirst, .ExternalClass div.ecxMsoListParagraphCxSpFirst, .ExternalClass p.ecxMsoListParagraphCxSpMiddle, .ExternalClass li.ecxMsoListParagraphCxSpMiddle, .ExternalClass div.ecxMsoListParagraphCxSpMiddle, .ExternalClass p.ecxMsoListParagraphCxSpLast, .ExternalClass li.ecxMsoListParagraphCxSpLast, .ExternalClass div.ecxMsoListParagraphCxSpLast {
line-height:115%;
}
</style><div data-externalstyle="false" dir="ltr" style="font-family:Calibri,'Segoe UI',Meiryo,'Microsoft YaHei UI','Microsoft JhengHei UI','Malgun Gothic','Khmer UI','Nirmala UI',Tunga,'Lao UI',Ebrima,sans-serif;font-size:12pt;"><div> </div><div data-signatureblock="true">I am using visual studio 2012 and despite of including the header files I get the </div><div data-signatureblock="true">Error 1 error C2065: 'packet_handler' : undeclared identifier error</div><div data-signatureblock="true"> </div><div data-signatureblock="true">and the source code is copy pasted from the winpcap¡¯s official site.<br></div></div><br>_______________________________________________
Winpcap-users mailing list
Winpcap-users@winpcap.org
https://www.winpcap.org/mailman/listinfo/winpcap-users</div></div></div> </div></body>
</html>