Méthode System::Runtime::InteropServices::Marshal::StringToHGlobalAuto

Marshal::StringToHGlobalAuto method

Copie le contenu d’une chaîne spécifiée dans la mémoire non gérée, en le convertissant au format ANSI si nécessaire.

static IntPtr System::Runtime::InteropServices::Marshal::StringToHGlobalAuto(const String &s)
ParamètreTypeDescription
sconst String&Une chaîne à copier.

ReturnValue

L’adresse, dans la mémoire non gérée.

Voir aussi