
Public declarations not accepted
I'm trying out some sample code from the MS site. This concerns the systray.
1.Add the following code to the declarations section of a standard module in
your project:
'user defined type required by Shell_NotifyIcon API call
Public 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
'constants required by Shell_NotifyIcon API call:
Public Const NIM_ADD = &H0
Public Const NIM_MODIFY = &H1
Public Const NIM_DELETE = &H2
But, when I try to run this, I get errors on all these Public statements. So,
are the instructions of where to put these in error, or what?
Quote:
>\J