paul.welter
8/30/2007 5:14:00 AM
There is a dll that has a definition of ...
int suggest(spell *pMS, char *word, char ***slst);
I'm trying to figure out how to marshal the char*** type to c#. This
is what i have so far but doesn't work ...
[DllImport(dllName, EntryPoint = "suggest", CharSet = CharSet.Auto,
SetLastError = true)]
public static extern int suggest(
IntPtr pMS,
[MarshalAs(UnmanagedType.LPStr)]
string word,
[MarshalAs(UnmanagedType.LPArray, ArraySubType =
UnmanagedType.LPStr)]
out string[] slst);
I assume that char*** is an array of strings. How do I marshal this?
thanks,
Paul