Bonjour,
j'ai du mal à utiliser une DLL (win32).
Le prototype de la fonction que j'appelle est :
int** allocation(int** r, int colonne, int ligne)
En fait, c'est du calcul matriciel, je passe une matrice (r) et ses dimensions. En retour, j'ai une autre matrice.
Dans mon code C#, je fias ceci :
[DllImport("MetHongroise.dll", EntryPoint="allocation", SetLastError=true, CharSet=CharSet.Unicode, ExactSpelling=true, CallingConvention=CallingConvention.StdCall)]
public static extern int[,] allocation(ref int[,] r, int n);
Mais là, probleme. j'arrive pas à faire marcher ça. Surtout sur le retour ...
Quelqu'un peut m'aider ??
Merci