Whaddaya know...

C

Cerksees

Using VS 2003 on XP Pro SP2 with all updates, I attempt to follow the
sample code on http://support.microsoft.com/kb/311284.

I get this error message in my app....

C:\Documents and Settings\Jim\My Documents\Visual Studio
Projects\HSBrowser\HSBrowser\HSBrowser.vb(277): 'HSBrowser.IEEvents' must
implement 'Overridable Sub NewWindow3(ByRef ppDisp As Object, ByRef Cancel
As Boolean, dwFlags As System.UInt32, bstrUrlContext As String, bstrUrl As
String)' for interface 'SHDocVw.DWebBrowserEvents2'.

So I added ...

Public Overridable Sub NewWindow3(ByRef ppDisp As Object, ByRef Cancel As
Boolean, _
ByVal dwFlags As System.UInt32, ByVal bstrUrlContext As String, _
ByVal bstrUrl As String)

End Sub

But the above error persists. Could it have anything to do with the use
of UInt32 in a VB.Net app?

I read "Historically, Visual Basic has supported unsigned byte and signed
integer types, but it hasn't supported signed bytes or unsigned integers. In
Visual Basic .NET 2002 and 2003, developers could create and use the .NET
Framework's unsigned types, but they couldn't perform mathematical
operations on these values." on
http://msdn.microsoft.com/vbasic/wh...brary/en-us/dnvs05/html/vbnet2005_preview.asp,
so I assume I should be able to use UInt32 in VB.Net 2003.

Any ideas?
 
C

Chris Dunaway

So I added ...

Public Overridable Sub NewWindow3(ByRef ppDisp As Object, ByRef Cancel As
Boolean, _
ByVal dwFlags As System.UInt32, ByVal bstrUrlContext As String, _
ByVal bstrUrl As String)

End Sub

But the above error persists. Could it have anything to do with the use
of UInt32 in a VB.Net app?

You must use the Implements clause at the end of the method:

Public Overridable Sub NewWindow3(...) Implements mshtml.NewWindow3

End Sub

--
Chris

dunawayc[AT]sbcglobal_lunchmeat_[DOT]net

To send me an E-mail, remove the "[", "]", underscores ,lunchmeat, and
replace certain words in my E-Mail address.
 
J

Jim Hubbard

Bless you....


Chris Dunaway said:
So I added ...

Public Overridable Sub NewWindow3(ByRef ppDisp As Object, ByRef Cancel
As
Boolean, _
ByVal dwFlags As System.UInt32, ByVal bstrUrlContext As String, _
ByVal bstrUrl As String)

End Sub

But the above error persists. Could it have anything to do with the
use
of UInt32 in a VB.Net app?

You must use the Implements clause at the end of the method:

Public Overridable Sub NewWindow3(...) Implements mshtml.NewWindow3

End Sub

--
Chris

dunawayc[AT]sbcglobal_lunchmeat_[DOT]net

To send me an E-mail, remove the "[", "]", underscores ,lunchmeat, and
replace certain words in my E-Mail address.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top