try
WebBrowser1.Navigate2(url);
except
end;
上面的这段代码,没人任何问题,
try
1、 WebBrowser1.Navigate2(url);
2、 showmessage(IHtmlDocument2(WebBrowser1.Document).Body.InnerText);
except
end;
执行第2句时出错,不知道为什么,郁闷。
提示 access violation at address 004a62ef in module 'eread.exe' !!!!
WebBrowser1.Navigate2(url);
except
end;
上面的这段代码,没人任何问题,
try
1、 WebBrowser1.Navigate2(url);
2、 showmessage(IHtmlDocument2(WebBrowser1.Document).Body.InnerText);
except
end;
执行第2句时出错,不知道为什么,郁闷。
提示 access violation at address 004a62ef in module 'eread.exe' !!!!
if Webbrowser1.Document <> nil then
但是这样就不会出错:
try
WebBrowser1.Navigate2(url);
showmessage('a');
showmessage(IHtmlDocument2(WebBrowser1.Document).Body.InnerText);
except
end;