🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #12934

Re: Linker Errors for function IcmpCreateFile()

#12934
From: Colin Maharaj
Date: Thu, 06 Nov 2003 22:54
31 lines
1830 bytes
Try putting the lib file in yor library path for your project
and put this...... 

#pragma link "icmp.lib"

Put it in the cpp file where you are working with.....

Also instead of extracting the LIB file from the DLL, use 
LoadLibrary instead.



Maurice Anderson wrote:
> 
> Hello, I want to use the IcmpCreateFile() function.  In the MSDN
> documentation it says to:
> 
> Header: Declared in icmpapi.h.
> Library: Use iphlpapi.lib.
> 
> Both of which I use in my project.
> 
> I have also included "icmpapi.h" which contains the reference to the
> IcmpCreateFile function and "icmp.lib" which I obtained from running implib
> on c:\winnt\system32\icmp.dll.  Nevertheless, I still receive linker errors
> that say:
> 
> "[Linker Error] Unresolved external '__stdcall IcmpCreateFile()' referenced
> from .."
> 
> Any help would be greatly appreciated.
Technical Details
Message-ID: <3FAAD13D.E4FF667E@cablenett.net>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <3fa4360c$2@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,15d4a0587b1f4f22
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-11-06 15:09:56 PST
Message-ID: <3FAAD13D.E4FF667E@cablenett.net>
Date: Thu, 06 Nov 2003 18:54:53 -0400
From: Colin Maharaj <cbm@cablenett.net>
Reply-To: cbm@cablenett.net
X-Mailer: Mozilla 4.78 [en] (Windows NT 5.0; U)
X-Accept-Language: en
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: Linker Errors for function IcmpCreateFile()
References: <3fa4360c$2@newsgroups.borland.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 196.32.37.86
X-Trace: newsgroups.borland.com 1068159455 196.32.37.86 (6 Nov 2003 14:57:35 -0700)
Lines: 31
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail