return object from C++

bwells

Well-known member
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++?
 
Im not a C++ guy, so here is the c# interface for a method returning null:
C#:
//The interface class with its method
public interface ISomeInterface
{
      void SomeMethod();
}
//And to implement in C#
public class MyClass : ISomeInterface
{
   public void SomeMethod
   {
      //some implementation
   }

}
 

Similar threads

J
Replies
0
Views
59
Jalil Sear [MCPD SharePoint]
J
D
Replies
0
Views
63
duoshock
D
V
Replies
0
Views
259
Vergassivellaunus
V
Back
Top