473,394 Members | 2,090 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Whaddaya know...

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/whi...05_preview.asp,
so I assume I should be able to use UInt32 in VB.Net 2003.

Any ideas?
Nov 21 '05 #1
2 1096
On Thu, 9 Dec 2004 23:59:15 -0500, Cerksees wrote:
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.
Nov 21 '05 #2
Bless you....
"Chris Dunaway" <"dunawayc[[at]_lunchmeat_sbcglobal[dot]]net"> wrote in
message news:hg****************************@40tude.net...
On Thu, 9 Dec 2004 23:59:15 -0500, Cerksees wrote:
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.

Nov 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Bosconian | last post by:
This is more of an HTML question, but it's related to a PHP project. I have a simple form consisting of 2 selects, 1 text input and a submit button. The form action submits to the same page. ...
0
by: Laphan | last post by:
I know this is a crosspost, but I need to know which is the best one for posting INET FTP queries, so that I'm not cross-posting in future. Now that I've posted could somebody let me know: 1)...
1
by: Laphan | last post by:
Hi All I know this is my 2nd (and final) cross-post, but which NG should I use for the below. I want to create a game that queries and updates text and numeric stats on a regular basis, so...
3
by: Robert | last post by:
Python doesn't know the class of a method when container not direct class attribute: >>> class X: .... def f():pass .... g=f .... l= .... >>> X.g <unbound method X.f>
20
by: Simon Harvey | last post by:
Festive greetings fellow programmers! I've been programming now for about 4, maybe 5 years now. 4 of those years were at university so and I havent had much work experience of making real world...
4
by: Support | last post by:
Hi, I want to know if I have changed a few records in my database using update / insert / delete methods, how can i later know which rows have been changed or modified ? I know the...
37
by: jht5945 | last post by:
For example I wrote a function: function Func() { // do something } we can call it like: var obj = new Func(); // call it as a constructor or var result = Func(); // call it as...
102
by: BoogieWithStu22 | last post by:
I am running into a problem with a web page I have created when viewing it in IE6 on some machines. The page has a database lookup. The user enters an account name or number and clicks a lookup...
3
markmcgookin
by: markmcgookin | last post by:
Hi Folks, I have a VB app, and I have been working at it for a while, and I am now at the stage where I want to create a search function. Now don't be scared! It is in the .Net compact framework,...
5
by: garks | last post by:
Is there any way to know the computer is connected to a router? I know using WebRequest is one of the method, but WebRequest need router's URL , username and password. I don't know those...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.