i have C# dll which has a function
public static Int32[] remDup(Int32[] dArray){
return dArray.Distinct().toArray();
}
i have jni function for this
JNIEXPORT remDup..... ( jintArray dupArray){
// from java call i get dupArray
CsharpDLL::CSharpClass::remDup(/*pass an int32 array */)
}
i have java function which calls below function using jni
remDup (Int[] array)
i m calling C# DLL from Java using C++ wrapper... i have already spent half of the day to find out to pass jIntArray to C# dll function ... but no success.. with complete R&D as much as i can doo..
differet techniques
i.e array<System::Int32^)^ array, Marshal techniques but still unable to pass array from C++ (JintArray) to C# DLL .. plz help or guide
"cli::array<int,1>^"cannot be used to initialize an entity of type"cli::array<System::Int32^,1>^ "