Bonjour!
voila j'ai un petit probleme de passage de valeurs d'un composant COM (developpé en C# .net) et asp (non .net).
Concretement, j'ai un pti problemen sur le passage de parametre (tableau de int) de c# vers asp .
Voici mon code c# :
Pour ce faire j'ai fait un petit test :
interface testInterface{
[return: MarshalAs(UnnmanagedType.saffeArray)]
int[] getTest();
}
public class testImpl : testInterface{
public int[] getTest(){
int[] tab = new int[]{1,2,3,4,5,6,7,89,0};
return tab;
}
}
Donc Si j'appelle cet objet a partir d'une page asp, comme ceci :
... creation de l'objet (server.createobject ...)
tableau = t.getTest()
Lorsque je fais typename(tableau), ca marche, ca reponds : Long().
Quand je fais ubound(tableau) +1 =>10.
Par contre quand je fais : tableau(1), ca marche plus !!! Erreur : Type incompatible ....
Voila, et la j'ai beau chercher des info sur le net ca marche pas trop ..
Votre aide serez la bienvenue
Merci