Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Getting error while referring shell32.dll

Status
Not open for further replies.

altctldel

Programmer
Dec 15, 2000
17
IN
I am getting an runtime-error-number 453.its description is "Can't find DLL entry point Shell_NotifyiconA in shell32.dll.
pls help
 
First thing to do is check your API declaration to make sure it is correct (remember, these are case sensitive).

Is this the exact declaration you are using?[tt]
Public Declare Function Shell_NotifyIcon Lib "shell32.dll" Alias " Shell_NotifyIconA" (ByVal dwMessage As Long, lpData As NOTIFYICONDATA) As Long
[/tt]


I think you forgot to capitalize the letter "I" in "Icon". The API is very particular. Sometimes you have to cross your "T"s and dot your "I"s. :)

VCA.gif

Alt255@Vorpalcom.Intranets.com
 
thanx alt255 for your reply .I got it correct after changing correction you suggested.
 
I have a similar problem, but syntax is not the issue. I've conformed the function call to several examples on the Web but I'm still getting an error.
Trying to run a Webpage program invoking Win API SHFILEOPERATION to copy a file, and the function uses Shell32.dll. However, I keep getting the message:
"Unable to find an entry point named SHfileOperationA in DLL shell32.dll". I KNOW from all the postings on the web that I've got the right syntax.
Using Windows 2000 and Explorer 5.5, Shell32 version 5+ Anybody know what my problem is?
 
Now on reading this message I realize I did the same thing--had a small letter instead of a cap. I think I've got it right now....
Good advice!
 
Amongst the standard Microsoft tools you will fing API viewer it's designed for this purpose. Just look up the start of a Declare and it gives the whole thing, which you can just cut and paste.
________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first

'People who live in windowed environments shouldn't cast pointers.'
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top