My friend build an application ( console app) in C++/CLI.
I’m programming in C#.
Ive build for him some DLL in C# which does some calculations based on params that he send.
My function (inside my C# dll) looks like this :
bool LongCalc(dynamic obj)
{
...
}
(again , the obj needs to be sent from his c++/cli to my c# dll).
my question :
If he creates an object in his cpp like :
cppObj
{
prop1 , prop2 , prop...n
}
would I be able to read his obj in my c# as :
obj.prop1
obj.prop2 .... ?
what should he or me need to do in order for me to work with his obj ?
If he’s using your C# DLL from his C++ application then I’m guessing he’s using managed C++. If that’s the case then it’d make sense for him to define his C++ class as a managed C++ class so that you’ll be able to invoke methods against it.