Discussion:
InternetGetLastResponseInfo gives lnk2001 error
(too old to reply)
ToDieFor
2006-01-25 20:00:03 UTC
Permalink
I'm trying to get more information about the windows.h error 12003. I'm
using the afxinet.h include to get a connection to a ftp server, and then
trying to retrieve a list of files and I'm getting no files found, with last
error of 12003. In the more information about the error, I'm supposedly
able to use this function to get more information, but when I try to use as
per the documentation on msdn, I get a lnk2001 error. I'm sure it's because
I'm not using an include file of some sort, but I don't know which file to
include or which option to turn on/off on visual studio. I'm using version
6, and if necessary I can include the code that I'm using to try to do this.

TIA for advice / help / directions
Scherbina Vladimir
2006-01-25 20:44:34 UTC
Permalink
InternetGetLastResponseInfo is wininet.dll function, make sure you're
linking against wininet.lib.
Add wininet.lib in linker options or write in your code

#pragma comment(lib, "wininet.lib")
--
Vladimir
Post by ToDieFor
I'm trying to get more information about the windows.h error 12003. I'm
using the afxinet.h include to get a connection to a ftp server, and then
trying to retrieve a list of files and I'm getting no files found, with last
error of 12003. In the more information about the error, I'm supposedly
able to use this function to get more information, but when I try to use as
per the documentation on msdn, I get a lnk2001 error. I'm sure it's because
I'm not using an include file of some sort, but I don't know which file to
include or which option to turn on/off on visual studio. I'm using version
6, and if necessary I can include the code that I'm using to try to do this.
TIA for advice / help / directions
ToDieFor
2006-01-25 21:52:02 UTC
Permalink
Thank you for your reply. That was all it needed. For some reason it didn't
link against wininet.lib I guess. I had include "afxinet.h" as per a guide
that I was following on msdn.
Post by Scherbina Vladimir
InternetGetLastResponseInfo is wininet.dll function, make sure you're
linking against wininet.lib.
Add wininet.lib in linker options or write in your code
#pragma comment(lib, "wininet.lib")
--
Vladimir
Post by ToDieFor
I'm trying to get more information about the windows.h error 12003. I'm
using the afxinet.h include to get a connection to a ftp server, and then
trying to retrieve a list of files and I'm getting no files found, with last
error of 12003. In the more information about the error, I'm supposedly
able to use this function to get more information, but when I try to use as
per the documentation on msdn, I get a lnk2001 error. I'm sure it's because
I'm not using an include file of some sort, but I don't know which file to
include or which option to turn on/off on visual studio. I'm using version
6, and if necessary I can include the code that I'm using to try to do this.
TIA for advice / help / directions
Loading...