> Pls anyone tell me ... Pls read this msg fully and reply me soon
>
[quoted text clipped - 9 lines]
> > C makes it easy to shoot yourself in the foot; C++ makes it harder, but
> > when you do, it blows away your whole leg. - Bjarne Stroustrup
Hi experts!
I have two projects ...
so First project cs code like this,
===========================
using System;
using EwaoListingCommon;
namespace Cititown
{
/// <summary>
/// Summary description for Compose.
/// </summary>
public class Compose : CommonPage
// SEE HERE
{
protected System.Web.UI.HtmlControls.HtmlInputHidden
hPostingID;
private void Page_Load ( object sender, EventArgs e )
{
bool bFileRemoved = false;
}
}
}
Second project code like this,
======================
using System;
using EwaoListingCommon;
namespace Cititown.myemails
{
/// <summary>
/// Summary description for Compose.
/// </summary>
public class ListingComposeGraphic : XmlPage
// SEE
HERE
{
protected System.Web.UI.HtmlControls.HtmlInputHidden
hAction;
private void Page_Load ( object sender, EventArgs e )
{
bool bFileRemoved = false;
}
}
}
If I am using like this
==================
using System;
using EwaoListingCommon;
namespace Cititown.myemails
{
/// <summary>
/// Summary description for Compose.
/// </summary>
public class ListingComposeGraphic : XmlPage , CommonPage
// SEE HERE
{
protected System.Web.UI.HtmlControls.HtmlInputHidden
hPostingID;
private void Page_Load ( object sender, EventArgs e )
{
bool bFileRemoved = false;
}
}
}
I got error like this is not type of interface
Marc Gravell - 23 Nov 2006 12:24 GMT
I suspect that you are attempting multiple inheritance, which isn't
supported in C# (or .Net AFAIK); ListingComposeGraphic can inherit from one
or the other, but not both.
But! don't tell us something *like* the error message. Just copy / paste. It
will be less typing, and might actually tell us the problem!!!
</rant>
Marc
Christof Nordiek - 23 Nov 2006 12:29 GMT
Hi Sala,
C# doesn't support multiple inheritance for classes.
in the line:
> public class ListingComposeGraphic : XmlPage , CommonPage
you try to inherit from 2 classes. That's not posseble.
If CommonPage were an interface, this would be possible. That's why the
compiler says 'this is not type of interface'
> Hi experts!
>
[quoted text clipped - 74 lines]
>
> I got error like this is not type of interface