Solved

error LNK2001 again!

Posted on 2000-04-23
5
233 Views
Last Modified: 2010-04-02
I call InetIsOffline in my program, which is declared in "Intshcut.h".
I include this header file, but when linking, error LNK2001 appears. How to resolve it? Pleas help me.
0
Comment
Question by:seuwind
5 Comments
 

Expert Comment

by:kishk91
ID: 2741546
Did you linked the correct dll???]
this error is due to missing dll....
kishk
0
 
LVL 4

Expert Comment

by:AssafLavie
ID: 2742055
Make sure you link with shell32.lib.
Project settings -> Link -> Object/Library modules -> "shell32.lib".
0
 
LVL 23

Accepted Solution

by:
chensu earned 50 total points
ID: 2742278
You need to link with url.lib.

Choose the Project/Settings... menu, the Link tab, append url.lib to the Object/library modules edit box.
0
 

Author Comment

by:seuwind
ID: 2742709
Thanks,ChenSu. You helped me again.
I wonder how can I know which lib to link. It isn't said in the header file or MSDN. Can you tell me?
0
 
LVL 23

Expert Comment

by:chensu
ID: 2742838
The Internet shortcut utility functions use url.lib. InetIsOffline is one of them.

Internet shortcut utility functions

InetIsOffline
MIMEAssociationDialog
TranslateURL
URLAssociationDialog

You may also search the lib directory for "InetIsOffline".
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Often, when implementing a feature, you won't know how certain events should be handled at the point where they occur and you'd rather defer to the user of your function or class. For example, a XML parser will extract a tag from the source code, wh…
C++ Properties One feature missing from standard C++ that you will find in many other Object Oriented Programming languages is something called a Property (http://www.experts-exchange.com/Programming/Languages/CPP/A_3912-Object-Properties-in-C.ht…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.

910 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

22 Experts available now in Live!

Get 1:1 Help Now