Article View: borland.public.cppbuilder.nativeapi
Article #16322Re: borland c++ builder and windows api
From: nicolasr
Date: Wed, 21 May 2003 19:23
Date: Wed, 21 May 2003 19:23
20 lines
1860 bytes
1860 bytes
Hi Giorgio, the linker tells you the function is unresolved meaning he can't find the implementation. The implementation is in the DLL you mentioned, but the linker doesn't know about the DLL (it's name etc). What is needed besides the header file is an "import library" (.lib) for this DLL. C++Builder already has most of the lib files in his lib directory. If one is missing you can use the implib.exe console tool. For example: implib iphlpapi.lib c:\windows\system\iphlpapi.dll (if the dll is in this path) Once you have the import library, copy it to your project folder. You unfortunately then have to add the library to your project by hand. "Project->Add to Project". Now it should work. Nick
Technical Details
Message-ID:
<3ecbd218$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!newsfeed1.earthlink.net!newsfeed2.earthlink.net!newsfeed.earthlink.net!newsfeed.news2me.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mailReferences:
<3ec9e39b@newsgroups.borland.com> <3eca041d@newsgroups.borland.com> <3eca314b@newsgroups.borland.com> <3eca6dff@newsgroups.borland.com> <3ecbaa30@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,3ad9d0d2179ea58e X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-05-21 12:30:11 PST From: "nicolasr" <nicolasrNOSPAMATSIGNgmx.net> Newsgroups: borland.public.cppbuilder.nativeapi References: <3ec9e39b@newsgroups.borland.com> <3eca041d@newsgroups.borland.com> <3eca314b@newsgroups.borland.com> <3eca6dff@newsgroups.borland.com> <3ecbaa30@newsgroups.borland.com> Subject: Re: borland c++ builder and windows api Date: Wed, 21 May 2003 21:23:55 +0200 Lines: 23 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2720.3000 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 NNTP-Posting-Host: 80.133.169.93 Message-ID: <3ecbd218$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1053544984 80.133.169.93 (21 May 2003 12:23:04 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!newsfeed1.earthlink.net!newsfeed2.earthlink.net!newsfeed.earthlink.net!newsfeed.news2me.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail