怎么用Shell_NotifyIcon函数
在VB下用Shell_NotifyIcon函数有什么要求吗?
我用vb.我想把图标放入托盘中可是在运行时总是说"在shell32.dll中找不到Shell_NotifyIcon".对于这个函数我是申明后直接使用的。还要什么步骤吗?我是vb6 & windows 2000。
问题点数:20、回复次数:3Top
1 楼turbo()回复于 2001-03-27 01:33:00 得分 10
Shell32.dll中的函数名实际上是Shell_NotifyIconA,要用Alias子句指定别名,Windows 2000下面是Unicode,那就应该是Shell_NotifyIconW,我有原码,请发信到turbovb@263.netTop
2 楼Jackyin(GunZ)回复于 2001-03-27 12:07:00 得分 10
Public Declare Function Shell_NotifyIcon Lib "shell32.dll"
Alias " Shell_NotifyIconA" (ByVal dwMessage As Long, lpData As NOTIFYICONDATA)
^ 去掉这一个空格,这是 一个bug
As Long
Top
3 楼furk()回复于 2001-03-28 07:04:00 得分 0
谢谢两位的帮助。不过上面两个方法不行。我又遇到一个问题:我直接用vb data form wizard不行。在adodc控件上它会说:
procedure declare does not match description of event or procedure having the same name.但如果我先使用adodcg再用vb data form wizard的话就没问题。也不知这是不是版本的问题。version 8862。sp4。Top




