Probably not, but the exception is still being thrown
Anyone have a solution?
Rossj wrote:
PhrostByte wrote: Am I not able to use marshaling in a delegate? It compiles fine.
delegate int ReportFilter(IntPtr doc, int lvl, uint line, uint col, [MarshalAs(UnmanagedType.LPStr)] string msg);
edit: still doesn't work when declaring msg as an IntPtr.
I am not sure that the MarshalAs is necessary. I'm just on my way home, if no-one else answers before then I'll look it up later.