Re: Interface stuff does not compile
- From: "solved by design" <zephryn.xirdal@xxxxxxxxxxxxxxxxx>
- Date: Wed, 26 Apr 2006 00:40:14 +0200
Ouch!
What a mistake!
I forgot put it in public! Like a beginner!
--
Si de pronto se descompusieran todos los televisores del mundo, no habría
escalas para medir los maremotos de aburrimiento.
-- Manuel Campo Vidal. (1951-) Periodista español.
"Bruno van Dooren" <bruno_nos_pam_van_dooren@xxxxxxxxxxx> wrote in message
news:eXG6AdKaGHA.4116@xxxxxxxxxxxxxxxxxxxxxxx
Hi all!
I have this clases:
interface class i1
{
void m(void);
void m2(void);
};
interface class i2
{
//void m(void);
void m3(void);
};
ref class pepe:public i1,public i2
{
put 'public:' here and it compiles without a problem.
members are private by default in a ref class.
i think private is not what you want anyway?
otherwise you would not have used 'virtual' probably.
I think interface members have to be implemented as public.
otherwise they won't make much sense.
see here for references:
http://www.gotdotnet.com/Community/MessageBoard/Thread.aspx?id=365736
virtual void m(void){;}
virtual void m2(void){;}
virtual void m3(void){;}
};
--
Kind regards,
Bruno van Dooren
bruno_nos_pam_van_dooren@xxxxxxxxxxx
Remove only "_nos_pam"
.
- References:
- Interface stuff does not compile
- From: solved by design
- Re: Interface stuff does not compile
- From: Bruno van Dooren
- Interface stuff does not compile
- Prev by Date: Re: function does not take number parameters in namespace
- Next by Date: Re: Interface stuff does not compile
- Previous by thread: Re: Interface stuff does not compile
- Next by thread: Re: Interface stuff does not compile
- Index(es):
Relevant Pages
|
Loading