Solved

Simple WinInet problem

Posted on 2000-02-18
3
1,041 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
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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
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.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

708 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now