| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 1209 人关注过本帖
标题:求教 :总是报错 453:找不到DLL入口点 ShellL_NotifyIconA in shell32.dll
只看楼主 加入收藏
sunsword
Rank: 1
等 级:新手上路
帖 子:2
专家分:0
注 册:2008-11-2
收藏
 问题点数:0 回复次数:3 
求教 :总是报错 453:找不到DLL入口点 ShellL_NotifyIconA in shell32.dll
求教 :总是报错 453:找不到DLL入口点 ShellL_NotifyIconA in shell32.dll
小弟刚学,请大侠指教一下下面的程序:
Option Explicit
Const MAX_TOOLTIP As Integer = 64
Const NIF_ICON = &H2
Const NIF_MESSAGE = &H1
Const NIF_TIP = &H4
Const NIM_ADD = &H0
Const NIM_DELETE = &H2
Const VM_MOUSEMOVE = &H2
Const VM_LBUTTONDOWN = &H201
Const VM_LBUTTONUP = &H202
Const VM_LBUTTONDBLCLK = &H203
Const VM_RBUTTONDOWN = &H204
Const VM_RBUTTONUP = &H205
Const VM_RBUTTONDBLCLK = &H206
Const SW_RESTORE = 9
Const SW_HIDE = 0
Private Type NotifyIcondata
cbsize As Long
hwnd As Long
uID As Long
uFlags As Long
uCallbackMessage As Long
bIcon As Long
szTip As String * MAX_TOOLTIP
End Type
Private Declare Function showwindow Lib "user32" (ByVal hwnd As Long, ByVal ncmdshow As Long) As Long

Private Declare Function shell_NotifyIcon Lib "shell32.dll" Alias "shell_NotifyIconA" (ByVal dwmessage As Long, lpdata As NotifyIcondata) As Long

Private nfIcondata As NotifyIcondata

Private Sub Command1_Click()
nfIcondata.hwnd = Me.hwnd
nfIcondata.uID = Me.Icon
nfIcondata.uFlags = NIF_ICON Or NIF_MESSAGE Or NIF_TIP
nfIcondata.uCallbackMessage = VM_MOUSEMOVE
nfIcondata.bIcon = Me.Icon.Handle
nfIcondata.szTip = "system tray example" & vbNullChar
nfIcondata.cbsize = Len(nfIcondata)
Call shell_NotifyIcon(NIM_ADD, nfIcondata)
End Sub

Private Sub Command2_Click()
Call shell_NotifyIcon(NIM_DELETE, nfIcondata)
End Sub

Private Sub Command3_Click()
showwindow Me.hwnd, SW_HIDE
End Sub

Private Sub Command4_Click()
Unload Me
End Sub

Private Sub Command5_Click()
Me.Visible = False
End Sub

Private Sub form_mousemove(button As Integer, shift As Integer, x As Single, y As Single)
Dim lmsg As Single
lmsg = x / Screen.TwipsPerPixelX
If lmsg = VM_RBUTTONUP Or lmsg = VM_LBUTTONUP Then Me.PopupMenu (Form1)
End Sub


Private Sub move_click()
Call shell_NotifyIcon(NIM_DELETE, nfIcondata)

End Sub
Private Sub show_click()
Me.Visible = True
End Sub

Private Sub exit_click()
Unload Me
End Sub
搜索更多相关主题的帖子: :总是报错 453:找不到DLL入口点 ShellL_NotifyIconA 
2008-11-04 16:36
Joforn
Rank: 6Rank: 6
等 级:贵宾
威 望:23
帖 子:1242
专家分:122
注 册:2007-1-2
收藏
得分:0 
Private Declare Function ShowWindow Lib "user32" Alias "ShowWindow" (ByVal hwnd As Long, ByVal nCmdShow As Long) As Long
Private Declare Function Shell_NotifyIcon Lib "shell32.dll" Alias " Shell_NotifyIconA" (ByVal dwMessage As Long, lpData As NOTIFYICONDATA) As Long

VB QQ群:47715789
2008-11-04 19:52
Joforn
Rank: 6Rank: 6
等 级:贵宾
威 望:23
帖 子:1242
专家分:122
注 册:2007-1-2
收藏
得分:0 
引用API函数时注意字母大小写。虽然VB对大小不敏感,但不代表C也对大小不敏感。

VB QQ群:47715789
2008-11-04 19:53
sunsword
Rank: 1
等 级:新手上路
帖 子:2
专家分:0
注 册:2008-11-2
收藏
得分:0 
万分感谢,斑竹
2008-11-05 10:19
快速回复:求教 :总是报错 453:找不到DLL入口点 ShellL_NotifyIconA in shell3 ...
数据加载中...
 
   



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

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