Search the web
Sign In
New User? Sign Up
webvb · Web VB
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Message search is now enhanced, find messages faster. Take it for a spin.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
could u help me with ping   Message List  
Reply | Forward Message #58 of 144 |
hi all,

i am writing a simple ping application using the
following calls

hIcmp = IcmpCreateFile(); // returns a handle to hIcmp
IcmpSendEcho(,,,,,,); // sends and receives request

IcmpCloseHandle(hIcmp); // closes the handle

now these require the icmp.dll, icmpapi.h & ipexport.h


i downloaded the two header files (icmpapi.h &
ipexport.h ) and included the icmp.dll by going to the
project->settings->link tab.

now while building this i get linker error saying
"Unresolved external Symbol"

error LNK2001: unresolved external symbol "int
__stdcall IcmpCloseHandle(void *)"
(?IcmpCloseHandle@@YGHPAX@Z)

error LNK2001: unresolved external symbol "unsigned
long __stdcall IcmpSendEcho(void *,unsigned long,void
*,unsigned short,struct ip_option_information *,void
*,unsigned long,unsigned long)"
(?IcmpSendEcho@@YGKPAXK0GPAUip_option_info
rmation@@0KK@Z)

error LNK2001: unresolved external symbol "void *
__stdcall IcmpCreateFile(void)"
(?IcmpCreateFile@@YGPAXXZ)

Can someone please help !!!

thanx a lot for the time you may spend

Regards
Amit Srivastava



____________________________________________________________
Do You Yahoo!?
Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
or your free @yahoo.ie address at http://mail.yahoo.ie



Thu Aug 2, 2001 1:30 pm

ami_sri@...
Send Email Send Email

Forward
Message #58 of 144 |
Expand Messages Author Sort by Date

hi all, i am writing a simple ping application using the following calls hIcmp = IcmpCreateFile(); // returns a handle to hIcmp IcmpSendEcho(,,,,,,); // sends...
amit srivastava
ami_sri@...
Send Email
Aug 2, 2001
1:30 pm

Hi, This does not look like Visual Basic. I don't think I can help here. Any C++ programmers out there? Paul Coleman ... From: amit srivastava...
Paul Coleman
Paul.Coleman@...
Send Email
Aug 3, 2001
1:13 am

Did you put include statements in your code? I'm not sure how the link functionality works, but I've always (for the few times I used C/C++) used include...
Troy Newton
newtontroy@...
Send Email
Aug 3, 2001
4:46 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help