Re,
Bon j'ai trouvé la solution à ce problème.
Je récupère mon Char* avec un IntPtr, cela me permet de l'affecter à sbyte* afin de reconstituer la chaine de caractère transmise.
Code:
1
2
3
4
5
6
7
8 public static unsafe int CBMethod(IntPtr p) { sbyte* str = (sbyte*)p.ToPointer(); string Data = new String(str); ; Console.WriteLine(Data); return 0; }