帮助选项Strict [英] Help with option Strict

查看:97
本文介绍了帮助选项Strict的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨选项严格的大师,

由于这里给出了如此多的建议使用Option Strict我确实尝试使用它来获得


但它给出了一个错误,我不知道如何解决这个问题。

消息是Option Strict不允许后期绑定。那么该如何做呢

呢?

该声明来自MSDN某处的一个例子
(不要问为什么我使用来自SHDOC的Ax版,那只是因为它有更多的方法。

\\\\\\\\\\\ \\\\\

Private Sub AxWebBrowser1_DocumentComplete(ByVal sender As System.Object,

ByVal e As AxSHDocVw.DWebBrowserEvents2_DocumentCompleteEvent)Handles

AxWebBrowser1.DocumentComplete

eDocuments.Add(e.pDisp.Document)

End Sub

/////////// //

Cor

Hi Option Strict gurus,
Because of the so much given advises here to use Option Strict I did try to
use that.
But it gives an error and I don''t know how to resolve that.
The message is that Option Strict disallowes late binding. So how to do it
then?
The statement is from an example somewhere on MSDN
(And don''t ask why I use the Ax version from SHDOC, that is just because it
has more methods)
\\\\\\\\\\\\\
Private Sub AxWebBrowser1_DocumentComplete(ByVal sender As System.Object,
ByVal e As AxSHDocVw.DWebBrowserEvents2_DocumentCompleteEvent ) Handles
AxWebBrowser1.DocumentComplete
eDocuments.Add(e.pDisp.Document)
End Sub
/////////////
Cor

推荐答案

您好,

" Cor" < no*@non.com> schrieb:
Hello,

"Cor" <no*@non.com> schrieb:
由于这里有如此多的建议使用Option
Strict我确实尝试使用它。
但是它给出了一个错误,我不知道如何解决这个问题。
消息是Option Strict不允许后期绑定。
那么怎么做呢?
声明来自MSDN上某个地方的一个例子
不知道为什么我使用SHDOC的Ax版,
这只是因为它有更多的方法)
\\\\\\\\\\\\私有子AxWebBrowser1_DocumentComplete(ByVal sender As System.Object,
ByVal e As AxSHDocVw.DWebBrowserEvents2_DocumentCompleteEvent)处理
AxWebBrowser1.DocumentComplete
eDocuments.Add(e.pDisp .Document)
End Sub
Because of the so much given advises here to use Option
Strict I did try to use that.
But it gives an error and I don''t know how to resolve that.
The message is that Option Strict disallowes late binding.
So how to do it then?
The statement is from an example somewhere on MSDN
(And don''t ask why I use the Ax version from SHDOC,
that is just because it has more methods)
\\\\\\\\\\\\\
Private Sub AxWebBrowser1_DocumentComplete(ByVal sender As System.Object,
ByVal e As AxSHDocVw.DWebBrowserEvents2_DocumentCompleteEvent ) Handles
AxWebBrowser1.DocumentComplete
eDocuments.Add(e.pDisp.Document)
End Sub




如何定义电子文档?你究竟在哪里得到错误?


问候,

Herfried K. Wagner

-

MVP·VB Classic,VB .NET
http://www.mvps。 org / dotnet




谢谢大家,它确实让我踏上了这个美好的星期日拼图的路线。 />
不是电子文档给出了错误,对不起我没有说

那个(这是一个集合,但在我看到的所有帖子之后我会改变

它在一个arraylist中。)

这是e.pdisp.Document(就我所见,类型为

mshtml。 htmldocument)

如果您知道答案,请告诉我,否则我会在晚上给我的结果

好​​吗?

Cor


Charles,

谢谢没有给出同样的问题。

我想我会看看是否可以避免axwebbrowser我想知道
200 2并在2003年删除,

pdisp有对象system._ComObject。

我可能会开始明白为什么。

不要花在任何时间,这只是我的好奇心。

Cor
Charles,
Thanks no gives the same problem.
I think I will look if I can avoid the axwebbrowser which was I thougt in
2002 and removed in 2003,
the pdisp has the object system._ComObject.
I maybe start to understand why.
Don''t spend any time anymore on it, it was just my curiosity.
Cor


这篇关于帮助选项Strict的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆