4 Replies Latest reply on Jun 29, 2010 10:12 AM by Corey Vantilborg

    IEdmGetOpCallback

    Corey Vantilborg

      All,

       

          I am attempting to implement this in a stand alone application(VB.NET 2008)

       

         I added this:

       

         Implements IEdmGetOpCallback
          Public Sub IEdmGetOpCallback_ProgressBegin(ByVal eType As EdmProgressType, ByVal eEvent As EdmUnlockEvent, ByVal iSteps As Integer) Implements IEdmGetOpCallback.ProgressBegin
              MessageBox.Show("start")
          End Sub

       

           Which gives me the error:

       

      Error 1 'IEdmGetOpCallback_ProgressBegin' cannot implement 'ProgressBegin' because there is no matching sub on interface 'EdmLib.IEdmGetOpCallback'. C:\Users\cvantilborg\Documents\Visual Studio 2008\Projects\Vault_Support_Update\Vault_Support_Update\Form1.vb 8 148 Vault_Support_Update

       

         Anyone have any idea whats going on? When I check in the object browser it looks like ProgressBegin does exist.

       

      Regards,

      Corey Vantilborg

      Tigercat Industries

        • Re: IEdmGetOpCallback
          Lee CS Young

          What version of EPDM?

           

          Your ProgressBegin declaration looks different than mine:

           

          Public Sub ProgressBegin(ByVal eType As EdmLib.EdmProgressType, ByVal lSteps As Integer) Implements EdmLib.IEdmGetOpCallback.ProgressBegin

          • Re: IEdmGetOpCallback
            Corey Vantilborg

            OK so I figured out my error but its still not working the way I expect, although that could be because I don't know how CallBacks work.

             

            So I have added to the beginning of my form class:

             

                Implements IEdmGetOpCallback
                Public Sub Begin(ByVal eType As EdmLib.EdmProgressType, ByVal lSteps As Integer) Implements EdmLib.IEdmGetOpCallback.ProgressBegin
                    MsgBox("Test")
                End Sub

             

             

            What I expect is that when I call IEdmBatchGet.GetFiles, Begin is fired.  However this is not happening.

             

            Any help would be appreciated,

            Corey V

              • Re: IEdmGetOpCallback
                Lee CS Young

                Are you passing your reference to the EdmGetOpCallback class you implemented to IEdmBatchGet.GetFiles()?

                 

                Class EdmGetOpCallback
                    Implements EdmLib.IEdmGetOpCallback
                    Public Sub ProgressBegin(ByVal eType As EdmLib.EdmProgressType, ByVal lSteps As Integer) Implements EdmLib.IEdmGetOpCallback.ProgressBegin
                    End Sub
                End Class

                 

                Dim getOpCallback As EdmGetOpCallback
                Dim batchGet As IEdmBatchGet
                getOpCallback = New EdmGetOpCallback()
                batchGet = vault.CreateUtility(EdmUtility.EdmUtil_BatchGet)

                'Do stuff

                batchGet.GetFiles(<your handle>, getOpCallback)