指点一下:能否用多线程DLL刷新一个比较慢的网页
各位大大:有个WB控件上的网页刷新比较慢,能否将这个网页的刷新交给一个多线程DLL来刷新,而不影响主程序的后继操作?
最近才开始研究VFP的COM组件,有一点点想法......
2021-11-29 11:51
2021-11-29 14:27
程序代码:Define Class RefreshOLE As Session OlePublic
Function RefreshXML(cOBJ As VARIANT,cFile As String)
If Empty(cOBJ.locationURL)
cOBJ.Navigate2(cFile)
Else
cOBJ.Refresh2("REFRESH_NORMAL")
Endif
Endfun
Function Error(nError, cMethod, nLine)
Comreturnerror(cMethod+' err#='+Str(nError,5)+;
' line='+Str(nline,6)+' '+Message(),_vfp.ServerName)
Endfun
Enddefine
2021-11-29 14:44

2021-11-30 11:16
[此贴子已经被作者于2021-11-30 11:36编辑过]
2021-11-30 11:33
[此贴子已经被作者于2021-11-30 14:44编辑过]
2021-11-30 11:47

2021-12-01 09:12
2021-12-01 09:41
2021-12-01 10:20