Solved

Simple WinInet problem

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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

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

Suggested Solutions

Title # Comments Views Activity
Need to retreive data from .TFS file exported by DVR 8 218
Turn a spreadsheet into a vba executable. 2 92
abstract class with all non abstract mentods 6 80
fix34  challenge 9 141
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…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
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.
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

856 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