Solved

Simple WinInet problem

Posted on 2000-02-18
3
1,064 Views
Last Modified: 2013-11-20
I have a program [sample] from MSDN which gets a file from an internet address thru a proxy server. I am not able to link the file ...
get the following errors
r.obj : error LNK2001: unresolved external symbol __imp__InternetOpenA@20
r.obj : error LNK2001: unresolved external symbol __imp__InternetErrorDlg@20
r.obj : error LNK2001: unresolved external symbol __imp__InternetSetOptionA@16
r.obj : error LNK2001: unresolved external symbol __imp__InternetReadFile@16
r.obj : error LNK2001: unresolved external symbol __imp__InternetQueryDataAvailable@16
r.obj : error LNK2001: unresolved external symbol __imp__HttpQueryInfoA@20
r.obj : error LNK2001: unresolved external symbol __imp__InternetQueryOptionA@16
r.obj : error LNK2001: unresolved external symbol __imp__HttpSendRequestA@20
r.obj : error LNK2001: unresolved external symbol __imp__InternetOpenUrlA@24
r.obj : error LNK2001: unresolved external symbol __imp__InternetGetLastResponseInfoA@12
Debug/r.exe : fatal error LNK1120: 10 unresolved externals

I'm new to MFC programming so I don't know what the problem is.....should have to link in some other lib perhaps ???
0
Comment
Question by:bluezen
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 1

Accepted Solution

by:
oarguimb earned 50 total points
ID: 2534622
I think it's just a link problem.

Have you tried to add Wininet.lib to your project ? (If it fails read the help perhaps you have to add a higher level library...but try wininet.lib first)

To add this lib just go to you project settings and in the link tab just add WININET.LIB in "Object/library modules" edit box.
0
 
LVL 1

Expert Comment

by:mahno
ID: 2534624
Hi, bluezen

In "Project->Setting->General->Microsoft Foundation Classes" U select "Use MFC in a static labrary" / "Use MFC in a shared DLL"?
0
 
LVL 1

Author Comment

by:bluezen
ID: 2535987
Thanks !!!
That was a very clear answer and it solved my problem !
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…

623 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question