R
Rodger Brennan
I need to marshal as string array in C# to an IntPtr. Ist there any way to
do this. for instance.
string[] str = { "this", "should", "have", "a", "pointer" };
IntPtr ptr = Marshal.AllocHGlobal(Marhsal.SizeOf(str.Length * str.Length);
Marshal.StructureToPtr(str,ptr,false);
Thanks in Advance for any help.
Rodger
do this. for instance.
string[] str = { "this", "should", "have", "a", "pointer" };
IntPtr ptr = Marshal.AllocHGlobal(Marhsal.SizeOf(str.Length * str.Length);
Marshal.StructureToPtr(str,ptr,false);
Thanks in Advance for any help.
Rodger