J
James Wong
hi,
I want to write some delegate function to the DLL.
How can I output the value to my main program? (Do not output the value to
the UI)
Any good idea for this program?
Thanks~
For example,
Public Class clsCallBackAdd
Delegate Function _AddDelegate(ByVal intInteger As Integer) As Integer
Private Function _Add(ByVal intInteger As Integer) As Integer
intInteger += 1
Return intInteger
End Function
Public Sub gSetDelegate(ByVal intInteger As Integer)
Dim deleg As _AddDelegate
Dim cb As New AsyncCallback(AddressOf gCallBack)
deleg = AddressOf _Add
deleg.BeginInvoke(intInteger, cb, deleg)
End Sub
Public Sub gCallBack(ByVal ar As IAsyncResult)
......
End Sub
End Class
I want to write some delegate function to the DLL.
How can I output the value to my main program? (Do not output the value to
the UI)
Any good idea for this program?
Thanks~
For example,
Public Class clsCallBackAdd
Delegate Function _AddDelegate(ByVal intInteger As Integer) As Integer
Private Function _Add(ByVal intInteger As Integer) As Integer
intInteger += 1
Return intInteger
End Function
Public Sub gSetDelegate(ByVal intInteger As Integer)
Dim deleg As _AddDelegate
Dim cb As New AsyncCallback(AddressOf gCallBack)
deleg = AddressOf _Add
deleg.BeginInvoke(intInteger, cb, deleg)
End Sub
Public Sub gCallBack(ByVal ar As IAsyncResult)
......
End Sub
End Class