Doug Semler
9/7/2007 3:26:00 PM
On Sep 7, 5:19 am, "Pascal Cloup" <pascal-cl...@biogesta.fr> wrote:
> Hello,
>
> What is the siplest way to convert a System::String to un unmanaged array of
> ASCII char[]?
>
> thanks in advance
>
> Pascal
IntPtr p = Marshal.StringToHGlobal{Ansi|Auto|Uni}(s);
Use the one appropriate for your needs.
Don't forget to Marshal.FreeHGlobal(p) when done.