How to access a variable in the dll?

i have a function say try() which is of return type “collection” in a dll, where collection is a struct which has some 5 members. my problem is whn i use dll import inside unity collection is not recognized as a return type. i know i have to do something bfore declaring tht dll.Could anyone help me with wat i shd do here.

Bump!!!

If it’s a C# dll you need to put your dll in the “Plugins” folder
if it’s a native C++ dll then you are doing somthing wrong while marshaling
With out some code we can’t help you more than that

I am aware of how to call a dll inside unity…

and i have no problem using c# dll since it is easy to access inside unity… what i want to know is about c++ dll , there is a function with custom datatype inside the dll, so shd i marshal it inside the dll or shd i marshal it in unity. plz help