I have a DLL
file that is written in C
. I tried to use it in managed code but some how my function is not working properly. Here is the C
code.
int preProcessImagesC (char *p_trainingFilePath,
char **p_vecImageFilesOrDirs);
This function is working fine.
Managed code :
unsafe private static extern int preProcessImagesC(
//Works perfact
String p_trainingFilePath,
//char** thise parameter is taking junk values , String Array is not working
[MarshalAs(UnmanagedType.SafeArray)] ref String[] p_vecImageFilesOrDirs);
Only first parameter is working properly. What should I use for char **p_vecImageFilesOrDirs
parameter in managed code. Please help me to write compatible code in C#
.