A
Academia
I have a library that contains classes.
A typical example is shown below.
I wonder if Module instead of Class would make more sense.
Are there pros and cons for using one or the other?
Thanks
Public Class WinDefH
Public Const MAX_PATH As Integer = 260
Public Structure SIZE
Public cx As Integer
Public cy As Integer
End Structure
Public Declare Auto Function Appnu Lib "user32.dll" _
(ByVal hMenu As IntPtr, ByVal flagsw ) As Integer
Public Shared Sub DisplayLastError()
...snip
end sub
Public Shared Function NoB(ByVal f As String) As String
...snip
End Function
end class
A typical example is shown below.
I wonder if Module instead of Class would make more sense.
Are there pros and cons for using one or the other?
Thanks
Public Class WinDefH
Public Const MAX_PATH As Integer = 260
Public Structure SIZE
Public cx As Integer
Public cy As Integer
End Structure
Public Declare Auto Function Appnu Lib "user32.dll" _
(ByVal hMenu As IntPtr, ByVal flagsw ) As Integer
Public Shared Sub DisplayLastError()
...snip
end sub
Public Shared Function NoB(ByVal f As String) As String
...snip
End Function
end class