我有一个DLL用C. 我尝试在托管代码中使用它,但有些我的功能无法正常工作。这是C代码。
int preProcessImagesC (char *p_trainingFilePath,
char **p_vecImageFilesOrDirs);
此功能运行良好。
托管代码:
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);
只有第一个参数工作正常。我应该 char **p_vecImageFilesOrDirs 在托管代码中使用什么参数。请帮我在C#.