hello,
I need to create a function for managed dll in c++, the function should
return an array of structs. what would be the proper declaration ?
thank you
hello,
I need to create a function for managed dll in c++, the function should
return an array of structs. what would be the proper declaration ?
thank you
If you mean C++/CLI, then (if I recall correctly):
If you mean C# (since you're posting in a C# forum):Code:System::Array<MyStruct> MyFunc();
If you mean a managed call from unamanged C++ you're out of luck.Code:public MyStruct[] MyFunc();
MagosX.com
Give a man a fish and you feed him for a day.
Teach a man to fish and you feed him for a lifetime.