Given IFace.cs in dll SomeInterface.dll:
namespace Some
{
public interface IFace
{
void Express(string mood);
}
}
This would be implemented like so in DogFace.h:
#using <SomeInterface.dll>
#using <mscorlib.dll>
using namespace System;
using namespace Some;
public ref class DogFace: IFace
{
public:
virtual void Express(String^ mood); //virtual is required
};
Pretty simple, but it took me longer than I would have liked.
No comments:
Post a Comment