Hello Massimo,

  You forgot to link wpcap.lib probably.
  In VC6 Press Alt+F7. Choose "Link" tab. Add "wpcap.lib" to the
"Object/library modules" edit box.

  
MS> Hi

MS> I am trying to write a little DLL in Visual C 6, just as a "wrapper" to call
MS> winpcap from Visual Basic.

MS> I have some problems, because some of the examples in the developers pack
MS> (like "pcap_filter") compile fine, my code not, but I don't understand how
MS> to fix...

MS> Compiling...
MS> StdAfx.cpp
MS> Compiling...
MS> twpcap.cpp
MS> Linking...
MS>    Creating library Debug/twpcap.lib and object Debug/twpcap.exp
MS> twpcap.obj : error LNK2001: unresolved external symbol "struct pcap *
MS> __cdecl pcap_open(char const *,int,int,int,struct pcap_rmtauth *,char *)"
MS> twpcap.obj : error LNK2001: unresolved external symbol "int __cdecl
MS> pcap_createsrcstr(char *,int,char const *,char const *,char const *,char *)"
MS> Debug/twpcap.dll : fatal error LNK1120: 2 unresolved externals
MS> Error executing link.exe.
MS> twpcap.dll - 3 error(s), 0 warning(s)



MS> If any C expert could spend 5 minutes, I can email the source code.
MS> Please let me know if posting the code to the list is annoying (about 30
MS> lines long).


MS> ciao, Massimo



MS> ==================================================================
MS>  This is the WinPcap users list. It is archived at
MS>  http://www.mail-archive.com/[email protected]/

MS>  To unsubscribe use 
MS>  mailto: [EMAIL PROTECTED]
MS> ==================================================================


-- 
Best regards, [EMAIL PROTECTED]



==================================================================
 This is the WinPcap users list. It is archived at
 http://www.mail-archive.com/[email protected]/

 To unsubscribe use 
 mailto: [EMAIL PROTECTED]
==================================================================

Reply via email to