i have one \'C\' \'DLL\' which can take structures as input, i have to call that dll from my c# program
fallowing are the sample structures i have in c, i have to m
(Scratch my original answer)
You need to have this at the top of each struct:
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)]
Note the CharSet named parameter. That's important, or you'll end up with wchar_t arrays instead of char arrays.
CharSet