I linked iphlpapi.lib in link tab option and also pragma comment the file but still get link error LNK1104 cannot open the file iphlpapi.lib
Do you know how to fix the problem ?
Thanks a lot inadvance
I linked iphlpapi.lib in link tab option and also pragma comment the file but still get link error LNK1104 cannot open the file iphlpapi.lib
Do you know how to fix the problem ?
Thanks a lot inadvance
Yes. Oviously you don't have the file iphlpapi.lib installed on your system. Try searching google for iphlpapi.lib, or ask if anyone has it. I don't. I don't even know what it is. But I can help.
From what I've seen, It seems to be a Windows CE module, am I correct?
[edit]
Sorry. I can't seem to find a download. See if you can snag an admin or mod. But I'll keep trying.
[/edit]
iewro has the file:
[edit]What OS are you using, iewro?[/edit]I linked iphlpapi.lib in link tab option
dwk
Seek and ye shall find. quaere et invenies.
"Simplicity does not precede complexity, but follows it." -- Alan Perlis
"Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
"The only real mistake is the one from which we learn nothing." -- John Powell
Other boards: DaniWeb, TPS
Unofficial Wiki FAQ: cpwiki.sf.net
My website: http://dwks.theprogrammingsite.com/
Projects: codeform, xuni, atlantis, nort, etc.
Correction: LNK1104 cannot open the file iphlpapi.libOriginally Posted by dwks
Cannot open file. Therefore, he doesn't have the file. That's why I'm searching.
[edit]Maybe the file isn't in the right directory? And besides, are you using MSVC (MicroSoft Visual C++) or Dev-C++? From what I see on MSDN, you're using MSVC version 6.0 +, am I correct?[/edit]
Last edited by kawk; 09-27-2005 at 03:36 PM.
If iewro managed to link the file in using the "link tab option", it exists, I would imagine. iewro's compiler wouldn't allow it if the file didn't exist.
dwk
Seek and ye shall find. quaere et invenies.
"Simplicity does not precede complexity, but follows it." -- Alan Perlis
"Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
"The only real mistake is the one from which we learn nothing." -- John Powell
Other boards: DaniWeb, TPS
Unofficial Wiki FAQ: cpwiki.sf.net
My website: http://dwks.theprogrammingsite.com/
Projects: codeform, xuni, atlantis, nort, etc.
Incorrect. You can type in SFHSDJFKSHDNMKTNewwwrhjwe.sdjkf and it will accept it until you try to link. Then you get error LNK1104. Go ahead, try it in MSVC or DEV.
Is that right? That's not too smart (the compiler, I mean).
dwk
Seek and ye shall find. quaere et invenies.
"Simplicity does not precede complexity, but follows it." -- Alan Perlis
"Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
"The only real mistake is the one from which we learn nothing." -- John Powell
Other boards: DaniWeb, TPS
Unofficial Wiki FAQ: cpwiki.sf.net
My website: http://dwks.theprogrammingsite.com/
Projects: codeform, xuni, atlantis, nort, etc.
Thank you for your answers.
Could you tell me why the following code line fails ?
DWORD len=sizeof(Adap);
DWORD status=GetAdaptersInfo(Adap,&len)
Again thanks
Yes, it's right. The link tab is just a place for you to write in what librarys you want to link to. The linker doesn't actually check for the validity of those files until the link process begins.Is that right? That's not too smart (the compiler, I mean).
Yes. Or, at least, on my compilers it doesn't check until compiletime. It might be a holdover from the days where your sourcefile & makefile were on diffrent disks than you gcc or tcc or whatever. Anyway. I can't seem to find a download for iphlpapi.lib, but I got a good excercise in searching MSDN. Sorry, iewro.
Explain what you mean by "fails". What error are you getting?Could you tell me why the following code line fails ?
Debug error, abnormal program termination.
Therefore, incorrect parms, passing an unallocated pointer by value, or perhaps no memory left .
[edit]Here's your problemo:
It should be:Code:DWORD status=GetAdaptersInfo(Adap,&len)
P.S. And maybe len should equal sizeof(structname) rather than sizeof(varname).Code:DWORD status=GetAdaptersInfo(Adap,len)
If I'm wrong, please tell me, and I'll look again.
[/edit]
Last edited by kawk; 09-27-2005 at 04:11 PM.
... and what did you think reporting it would do exactly? Besides wasting all of the mods time, who will see the mail and look to see if it has been handled... not a good way to go.
This is a reply to the reporter, not to the thread. S/he knows who that is.
Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.