Hi to all:
I had an old app developed in visual basic 6 to start replication using the sqldistribution class.
I'm trying to develop a new one in VB .Net, so I can use parallel threads, but I'm having problems with raising events.
I'm not too good at .NET, and I used to declare an object with events, like:
DIM WithEvents oSQLDistrib as SQLDistribution
Private Sub StartRepl
Set oSQLDistrib = new SQLDistribution
WITH oSQLDistrib
.Publisher = "dfd"
.Subscriber = ""
...etc
.initialize
.run
.Terminate
END WITH
end Sub
Private Function OSQLDistrib_Status(ByVal Message As String, ByVal Percent As Long) As SQLDISTXLib.STATUS_RETURN_CODE
Notify the message and percent values
End Function
But i can't have it work in .NET. Everything works fine, and I can get replication starting and finishing ok, however, the Status event, never raises.
Can someone help me!
thanks in advanced.