Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 253
  • Last Modified:

error LNK2001 again!

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
seuwind
Asked:
seuwind
1 Solution
 
kishk91Commented:
Did you linked the correct dll???]
this error is due to missing dll....
kishk
0
 
AssafLavieCommented:
Make sure you link with shell32.lib.
Project settings -> Link -> Object/Library modules -> "shell32.lib".
0
 
chensuCommented:
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
 
seuwindAuthor Commented:
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
 
chensuCommented:
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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now