help with vb.net

  • 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.

     

  • This was removed by the editor as SPAM

  • Hm, maybe you should post this to the .Net newsgroups?

     

    --
    Frank Kalis
    Microsoft SQL Server MVP
    Webmaster: http://www.insidesql.org/blogs
    My blog: http://www.insidesql.org/blogs/frankkalis/[/url]

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply