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.
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?
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.'
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.