¡@

Home 

c++ Programming Glossary: fnwrapper_intarr

Marshal C++ int array to C#

http://stackoverflow.com/questions/3776485/marshal-c-int-array-to-c-sharp

I have an unmanaged C dll which contains DLL_EXPORT int fnwrapper_intarr int test new int 3 test 0 1 test 1 2 test 2 3 return test with.. test with declaration in header extern C DLL_EXPORT int fnwrapper_intarr I am then using pinvoke to marshal it into C# DllImport wrapper_demo_d.dll.. MarshalAs UnmanagedType.SafeArray public static extern int fnwrapper_intarr And I use the function like so int test fnwrapper_intarr However..