Comment passe d'un char resp[] a un string C#
bonjour a tous je suis bloqué dans le développement d'une application car je n'arrive a convertir mon tableau de chaîne de caractères char resp[1500+1] en string C#.
voici le corps de la fonction en question elle retourne un System::String^
Code:
1 2 3 4
| const char * x_key = static_cast<const char *>(System::Runtime::InteropServices::Marshal::StringToHGlobalAnsi(key).ToPointer());
char resp[1500+1];
sql->GetData2(resp,x_key);
return ?? je sais pas :? |
meci a tous