F
Flomo Togba Kwele
I have a class which processes for a relatively long time. I want to enable
other classes which call this one to receive process messages if they wish.
The called routine (the one defining the delegate) is named CASSPrintSQL in
namespace CASS. The code is:
Private Delegate Sub DisplayMessage(ByVal msg As String)
Private _msgListener As DisplayMessage
....
Public Sub OnDisplayMessage(ByVal CallerMethod As DisplayMessage) '<== Error
_msgListener = CallerMethod
End Sub
The error is:
'CallerMethod' cannot expose type 'DisplayMessage' in namespace 'CASS' through
class 'CassPrintSQL'.
I do not understand this compilation error. Can anyone help? Thanks, Flomo
--
other classes which call this one to receive process messages if they wish.
The called routine (the one defining the delegate) is named CASSPrintSQL in
namespace CASS. The code is:
Private Delegate Sub DisplayMessage(ByVal msg As String)
Private _msgListener As DisplayMessage
....
Public Sub OnDisplayMessage(ByVal CallerMethod As DisplayMessage) '<== Error
_msgListener = CallerMethod
End Sub
The error is:
'CallerMethod' cannot expose type 'DisplayMessage' in namespace 'CASS' through
class 'CassPrintSQL'.
I do not understand this compilation error. Can anyone help? Thanks, Flomo
--