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.
I include this header file, but when linking, error LNK2001 appears. How to resolve it? Pleas help me.
Make sure you link with shell32.lib.
Project settings -> Link -> Object/Library modules -> "shell32.lib".
Project settings -> Link -> Object/Library modules -> "shell32.lib".
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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?
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".
Internet shortcut utility functions
InetIsOffline
MIMEAssociationDialog
TranslateURL
URLAssociationDialog
You may also search the lib directory for "InetIsOffline".
this error is due to missing dll....
kishk