Bonjour,
J'ai besoin de convertir un String^ en const unsigned short * � des fins de manipulations de chemin de r�pertoire.
L'encodage est en unicode. Le code suivant passe au compilateur mais ne me convertit pas la chaine.
Comment faire?
Code : S�lectionner tout - Visualiser dans une fen�tre � part
1
2
3 IntPtr tmp = System::Runtime::InteropServices::Marshal::StringToHGlobalANSI(chaine); const unsigned short * nomConvert = (unsigned short *)tmp.ToPointer();
Partager