Hi,
I have written a C++/CLI wrapper around a native c++ to use it in managed c# environment. I will give a simple example of what I did and the issue I'm facing:
Native Lib:
class a
{
};
class b
{
a Obj_a;
};
Wrapper DLL:
class a_wrap
{...
}
class b_wrap
{
b * bnative;
public:
void seta(a_wrap obj)
{
bnative->Obj_a = obj.getNative();
}
}
Now in c# when a declare an object of b_wrap it works ok. But when I call the function B.seta(a_wrap someobject), it gives me the error:
error CS1501: No overload for method 'setsymbol' takes '1' arguments
It takes one argument. I have passed the right parameter type. What can be the issue??
Thanks,
Xeeez