Home All Groups Group Topic Archive Search About

How to implement interface in Managed class ???

Author
24 May 2006 5:21 PM
hulinning
Hi all,
I try the following code to implement an interface as shown below:

I wonder why I do not have a compiler error since I should implement the
ICoolant interface 2 pure virtual functions (implicitly define by
__interface).


    public __gc __interface ICoolant
    {
        OnOffEnum GetChipFlushCondition() ;
        OnOffEnum Test() ;
    };

public __gc class CCoolant : public ICoolant
{
  public:
           CCoolant() ;

public:
           OnOffEnum GetChipFlushCondition() ;
};

AddThis Social Bookmark Button