473,387 Members | 1,760 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,387 software developers and data experts.

overriding a method of a different DLL

Hi All,
I am trying to override a method declared "public virtual void" of a
different DLL.

Creating a derived class and declaring it as "public override void"
doesn't work. Where am I wrong?
Thanks so much,
Alberto

Sep 13 '06 #1
5 1505
Hello, in**@devdept.com!

iI am trying to override a method declared "public virtual void" of a
idifferent DLL.

iCreating a derived class and declaring it as "public override void"
idoesn't work. Where am I wrong?

How it doesn't work? You get compile time-error?

--
Regards, Vadym Stetsyak
www: http://vadmyst.blogspot.com
Sep 13 '06 #2
Hi Vadym,

No, it simply go throuth the base class method and not on derived one.
Damn....

Can you explain me why?

Thanks so much,

Alberto

Vadym Stetsyak wrote:
Hello, in**@devdept.com!

iI am trying to override a method declared "public virtual void" of a
idifferent DLL.

iCreating a derived class and declaring it as "public override void"
idoesn't work. Where am I wrong?

How it doesn't work? You get compile time-error?

--
Regards, Vadym Stetsyak
www: http://vadmyst.blogspot.com
Sep 14 '06 #3
Hello, in**@devdept.com!

[skipped]

iCan you explain me why?

Give small code sample that represnts your problem

--
Regards, Vadym Stetsyak
www: http://vadmyst.blogspot.com
Sep 14 '06 #4
Are you sure you create an instance of the derived class and not using still
the ancestor class ?

--
Patrice

<in**@devdept.coma écrit dans le message de news:
11**********************@d34g2000cwd.googlegroups. com...
Hi Vadym,

No, it simply go throuth the base class method and not on derived one.
Damn....

Can you explain me why?

Thanks so much,

Alberto

Vadym Stetsyak wrote:
>Hello, in**@devdept.com!

iI am trying to override a method declared "public virtual void" of a
idifferent DLL.

iCreating a derived class and declaring it as "public override void"
idoesn't work. Where am I wrong?

How it doesn't work? You get compile time-error?

--
Regards, Vadym Stetsyak
www: http://vadmyst.blogspot.com

Sep 14 '06 #5
oh yes patrick,

You are right !!!

I forgot to change the new declaration and add the DERIVED class
name...
Thanks so much !!!

Patrice wrote:
Are you sure you create an instance of the derived class and not using still
the ancestor class ?

--
Patrice

<in**@devdept.coma écrit dans le message de news:
11**********************@d34g2000cwd.googlegroups. com...
Hi Vadym,

No, it simply go throuth the base class method and not on derived one.
Damn....

Can you explain me why?

Thanks so much,

Alberto

Vadym Stetsyak wrote:
Hello, in**@devdept.com!

iI am trying to override a method declared "public virtual void" ofa
idifferent DLL.

iCreating a derived class and declaring it as "public override void"
idoesn't work. Where am I wrong?

How it doesn't work? You get compile time-error?

--
Regards, Vadym Stetsyak
www: http://vadmyst.blogspot.com
Sep 15 '06 #6

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

Similar topics

9
by: James Marshall | last post by:
I'm writing a library where I want to override document.write(), but for all document objects; thus, I want to put it in the prototype. I tried Document.prototype.write= my_doc_write ; but it...
10
by: muscha | last post by:
I don't get it. What's the main differences between overriding a base class's methods vs. hiding them? Thanks, /m
3
by: news.microsoft.com | last post by:
Hi, It is possible to override a non virtual method with the "new" keyword So how is this different from specifying a method as virtual then providing the override keyword? Is there any...
4
by: ORi | last post by:
Hi all ! There's a question I've been bothering for a while: I'm actually developing architectural frameworks for application developing and I think virtual methods, although needed because of...
17
by: Bob Weiner | last post by:
What is the purpose of hiding intead of overriding a method? I have googled the question but haven't found anything that makes any sense of it. In the code below, the only difference is that...
3
by: Amin Sobati | last post by:
Hi, I have two classes. Class2 inhertis Class1: ----------------------------- Public Class Class1 Public Overridable Sub MySub() End Sub End Class Public Class Class2
18
by: JohnR | last post by:
From reading the documentation, this should be a relatively easy thing. I have an arraylist of custom class instances which I want to search with an"indexof" where I'm passing an instance if the...
6
by: bryanbabula | last post by:
I have a question about overriding i was wondering if anyone could help me with, or even suggesting a better/different way. I have no idea if this can even be done or not. I was wondering if there...
20
by: ramadeviirrigireddy | last post by:
Can anyone tell me whether the return type of the method will also be considered when you are overriding a method? what i mean exactly is whether the return type can be different when you are...
10
by: r035198x | last post by:
The Object class has five non final methods namely equals, hashCode, toString, clone, and finalize. These were designed to be overridden according to specific general contracts. Other classes that...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...

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.