Hi
My task is I want to extract email addresses in a web page(s). We are implementing this one in
VB. Here we are using some 3rd party tools for Multi threading. Sample code segment looks like
following...
For cur = 1 To UBound(Mpro_l_hrefs)
seltitle.ListItems(Mpro_lastitemcnt + cur).SubItems(7) = cur
csit = seltitle.ListItems(Mpro_lastitemcnt + cur).SubItems(2)
csit = ""
Call m_oProgressMgr.threadhref(cur, seltitle.ListItems
(Mpro_lastitemcnt + cur).SubItems(1))
Call m_oProgressMgr.ThreadPriority(cur, "NORMAL")
Next cur
But, I don't have much knowledge in how thread programming works. But my problem is if there are
more no. of pages to extract email addresses, the following block of code was never executes,
which implements next task..
Private Sub m_oProgressMgr_ProgressChange(ByVal objectID As Long, ByVal Progress As String)
If Progress <> "" Then
Call Mpro_getdetails_res(Progress, objectID)
End If
End Sub
When I debug the procedure, it never executed. My rest of the task has to doing that one.
Private WithEvents m_oProgressMgr As clsProgressMgr
Because ProgressChange is an event in clsProgressMgr class, then how can I known this event will
be fired?
If only one page is there to extract email messages, then this event will raise automatically.
So, what is the solution for more no. of pages?
Plz give me a solution for this...
With regards
S