Bonjour,

Je cherche depuis un bon moment maintenant comment convertir des tableau de wchar_t en tableau de byte (unsigned char) et inversement.

En dotnet j'ai l'habitude de faire Encoding.UNICODE.GetBytes("ma string"); (nota : les strings en dotnet sont ces wchar_t). Et Encoding.UNICODE.GetString(mon tableau de byte);

J'ai beau cherché je ne trouve pas comment effectuer les mêmes opérations en C++.

Merci de votre aide .