0

How would one pass a C# object via com? For example, say I have the following in a c# dll which is registered in the GAC and registry:

 public int Add(int a, int b)
    {
        return a + b;
    }

public int Add(NumberObject obj)
    {
        return obj.firstNumber + obj.SecondNumber;
    }

How is it possible to make the NumberObject comvisible so that the client, who is going to use this, can set its values? A c++ example would be great, is it even possible? Or are only native types like int, string etc passable by COM?

1 Answer 1

2

a good tutorial.

Sign up to request clarification or add additional context in comments.

2 Comments

THanks, I couldn't find this by googling, maybe I was looking for the wrong thing.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.