return object from C++

bwells

Regular
Joined
Feb 25, 2003
Messages
84
I have defined an C# interface with a method that returns an object.

How do I define the implementation for this method in C++?


public interface ICOSP_9054_Connection
{
object getConnection( );
}

Or how can I declare an interface method in C# which returns a void* so I can implement the method in C++?
 
I'm not a C++ guy, so here is the c# interface for a method returning null:
C#:
//The interface class with it's method
public interface ISomeInterface
{
      void SomeMethod();
}
//And to implement in C#
public class MyClass : ISomeInterface
{
   public void SomeMethod
   {
      //some implementation
   }

}
 
Back
Top