Link to home
Start Free TrialLog in
Avatar of seuwind
seuwind

asked on

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.
Avatar of kishk91
kishk91

Did you linked the correct dll???]
this error is due to missing dll....
kishk
Make sure you link with shell32.lib.
Project settings -> Link -> Object/Library modules -> "shell32.lib".
ASKER CERTIFIED SOLUTION
Avatar of chensu
chensu
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of seuwind

ASKER

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?
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".