Interface stuff does not compile



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

{

virtual void m(void){;}

virtual void m2(void){;}

virtual void m3(void){;}

};

Visual Studio says me that I've to implement each virtual method for all
interfaces into my pepe class, but that is the thing that I'm doing.

Can someone tell me where's my error? Working with C++/CLI, of course.

Thanks in advance.

--
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.


.



Relevant Pages

  • Re: Interface stuff does not compile
    ... void m2; ... members are private by default in a ref class. ... virtual void m2 ...
    (microsoft.public.dotnet.languages.vc)
  • template & void argument
    ... I would like to implement an interface class that defines a pure virtual ... The first idea was to use a template, but in that case void is not admited ... Any work-around this? ... Manuel ...
    (comp.lang.cpp)
  • Re: Interface stuff does not compile
    ... the way to uncomment second "void m" is to rename virtual ... virtual void i2::m ... you can also provide a private implementation. ...
    (microsoft.public.dotnet.languages.vc)
  • Re: template & void argument
    ... >I would like to implement an interface class that defines a pure virtual ... >method that could take any parameter as input, void inlcuded. ... >The first idea was to use a template, but in that case void is not admited ... C++ FAQ: http://www.parashift.com/c++-faq-lite/ ...
    (comp.lang.cpp)
  • Re: MFC Flicker and the Application Framework
    ... You may find this to be much easier and you don't have to worry about the flickering stuff so much. ... // FlickeringCounterView.cpp: implementation of the CFlickeringCounterView ... void CFlickeringCounterView::AssertValidconst ... virtual void OnBeginPrinting; ...
    (microsoft.public.vc.mfc)