| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 1137 人关注过本帖
标题:将图标添加到系统托盘出错:实时错误‘453’,找不到DLL入口点 Shell_Noti ...
只看楼主 加入收藏
cccool
Rank: 7Rank: 7Rank: 7
等 级:黑侠
帖 子:268
专家分:555
注 册:2007-5-1
结帖率:100%
收藏
 问题点数:0 回复次数:4 
将图标添加到系统托盘出错:实时错误‘453’,找不到DLL入口点 Shell_NotifyIcon

YLCPsmbW.rar (2.24 KB) 将图标添加到系统托盘出错:实时错误‘453’,找不到DLL入口点 Shell_NotifyIcon in shell32.d


运行时就出错,
将图标添加到系统托盘出错:实时错误‘453’,找不到DLL入口点 Shell_NotifyIcon in shell32.dll
代码如下:
哪位高手帮忙看看,是哪的问题
Private Declare Function Shell_NotifyIcon Lib "shell32.dll" Alias " Shell_NotifyIconA" (ByVal dwMessage As Long, lpData As NOTIFYICONDATA) As Long

Private Const NIM_ADD = &H0
Private Const NIM_DELETE = &H2
Private Const NIF_ICON = &H2
Private Const NIF_TIP = &H4

Private Type NOTIFYICONDATA
cbSize As Long
hwnd As Long
uID As Long
uFlags As Long
uCallbackMessage As Long
hIcon As Long
szTip As String * 64
End Type

Private TrayIcon As NOTIFYICONDATA

Private Sub Command1_Click()
Shell_NotifyIcon NIM_ADD, TrayIcon
End Sub

Private Sub Command2_Click()
Shell_NotifyIcon NIM_DELETE, TrayIcon
End Sub

Private Sub Form_Load()
TrayIcon.cbSize = Len(TrayIcon)
TrayIcon.hwnd = Me.hwnd
TrayIcon.uFlags = NIF_ICON Or NIF_TIP
TrayIcon.hIcon = Image1.Picture
TrayIcon.szTip = "Icon" & vbNullChar
End Sub

[此贴子已经被作者于2007-8-5 17:01:53编辑过]

搜索更多相关主题的帖子: DLL入口 实时错误 Shell NotifyIcon Private 
2007-08-05 16:19
multiple1902
Rank: 8Rank: 8
等 级:贵宾
威 望:42
帖 子:4881
专家分:671
注 册:2007-2-9
收藏
得分:0 
你用的是什么操作系统?   
2007-08-05 16:29
cccool
Rank: 7Rank: 7Rank: 7
等 级:黑侠
帖 子:268
专家分:555
注 册:2007-5-1
收藏
得分:0 
以下是引用multiple1902在2007-8-5 16:29:00的发言:
你用的是什么操作系统?

windows XP 是电脑问题吗?我在好几台上试过了,都是这样


[fly]让心情飞一会[/fly]
">Email to Me     
2007-08-05 16:44
purana
Rank: 16Rank: 16Rank: 16Rank: 16
来 自:广东-广州
等 级:版主
威 望:66
帖 子:6039
专家分:0
注 册:2005-6-17
收藏
得分:0 
VB自带的API浏览器有点问题.
错误的
Private Declare Function Shell_NotifyIcon Lib "shell32.dll" Alias " Shell_NotifyIconA" (ByVal dwMessage As Long, lpData As NOTIFYICONDATA) As Long

正确的
Private Declare Function Shell_NotifyIcon Lib "shell32.dll" Alias "Shell_NotifyIconA" (ByVal dwMessage As Long, lpData As NOTIFYICONDATA) As Long

我的msn: myfend@
2007-08-05 16:52
cccool
Rank: 7Rank: 7Rank: 7
等 级:黑侠
帖 子:268
专家分:555
注 册:2007-5-1
收藏
得分:0 
以下是引用purana在2007-8-5 16:52:25的发言:
VB自带的API浏览器有点问题.
错误的
Private Declare Function Shell_NotifyIcon Lib "shell32.dll" Alias " Shell_NotifyIconA" (ByVal dwMessage As Long, lpData As NOTIFYICONDATA) As Long

正确的
Private Declare Function Shell_NotifyIcon Lib "shell32.dll" Alias "Shell_NotifyIconA" (ByVal dwMessage As Long, lpData As NOTIFYICONDATA) As Long

谢谢!找了好久,就是没找到这个错误!!!
阁下真是细心


[fly]让心情飞一会[/fly]
">Email to Me     
2007-08-05 16:58
快速回复:将图标添加到系统托盘出错:实时错误‘453’,找不到DLL入口点 Shell ...
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.021441 second(s), 11 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved