login about faq

Hi.

I'm having an issue with the Mailman VB 6.0 ActiveX component. The control fires the ProgressInfo event, but not the PercentDone event. Does anyone know why this is? Below are the definitions of my event handlers. Am I doing something wrong? Please let me know.

Code snippet:

Private Sub mailman_PercentDone(ByVal pctDone As Long, abort As Long) ' << DOES NOT FIRE
    If (frmQMain.GlobalProgressBar.StopButtonClicked) Then
        abort = 1
    Else
        If (Not pctDone) Then
            ' If not done update status
            Call frmQMain.GlobalProgressBar.ProgressClass.IncrementProgressStage
        Else
            ' Otherwise reset the progress indicator
            frmQMain.GlobalProgressBar.ProgressClass.ResetProgressIndicator
            DoEvents
        End If
    End If
End Sub

Private Sub mailman_ProgressInfo(ByVal Name As String, ByVal value As String) ' << FIRES
    frmQMain.GlobalProgressBar.StatusPanel2Text = Name + " = " + value
    DoEvents
End Sub

Thanks,

David

asked Apr 10 '14 at 01:21

David
1557


If using the deprecated separate DLL implementation (where various Chilkat objects are contained in separate DLLs, such as "ChilkatMail2.dll"), then the percent-done event callback methods are named SendPercentDone and ReadPercentDone.

If using the combined-DLL implementation (which will be the only one available after v9.5.0), then the percent-done event callback method name conforms to the Chilkat standard name of "PercentDone".

I'm investigating the PercentDone event (within MailMan) to ensure that it's working..

link

answered Apr 11 '14 at 12:32

chilkat ♦♦
12.4k316360445

This new build fixes the problem:

32-bit: http://www.chilkatsoft.com/download/ChilkatAx-9.5.0-win32.zip

64-bit: http://www.chilkatsoft.com/download/ChilkatAx-9.5.0-x64.zip

This is version 9.5.0.29 (as viewed by the "Version" property on a Chilkat object). The problem only affected the newly released single-DLL ActiveX. It had to do with the "abort" output-only argument of the event as being marked "[out, retval]" in the IDL, when it should've only been "[out]", causing a mismatch between the VB6 function and the IDL function. (The events were firing internally, but stopping just short of making it to the VB6 function.)

link

answered Apr 11 '14 at 17:37

chilkat ♦♦
12.4k316360445

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×188
×49
×38
×19

Asked: Apr 10 '14 at 01:21

Seen: 1,720 times

Last updated: Apr 11 '14 at 17:37

powered by OSQA
{"cc_re__cc_re__cc_by_sa_3_0": ["    <a href=\"/about/\" >about</a> <span class=\"link-separator\"> |</span> <a href=\"/faq/\" >faq</a> <span class=\"link-separator\"> |</span> <a href=\"/privacy/\" >privacy</a> <span class=\"link-separator\"> |</span> <a href=\"/contact/?next=/questions/5195/visual-basic-60-event-mailman_percentdone-not-firing\" >contact</a> \n    </div>\n  <p>\n     <a href=\"http://osqa.net\" target=\"_blank\" title=\"OSQA Development Build (SVN-unknown)\">\n        powered by OSQA\n     </a>\n  </p>\n</div>\n <div id=\"licenseLogo\">\n  <a rel=\"license\" href=\"http://creativecommons.org/licenses/by-sa/3.0/\">\n            <img src=\"/m/default/media/images/by-sa-88x31.png\"\" title=\"Creative Commons: Attribution - Share Alike\" alt=\"cc-by-sa\" width=\"88\" height=\"31\" />\n  </a>\n </div>\n\n\n            </div>\n        \n        \r\n\n        \n    </body>\n</html>\n<!-- end template base_content.html -->\n"]}