Hi,
If I try and launch the attached in the debugger I get
~> Process ConsoleApplication3 started, took 0.686.
Unhandled exception. System.Runtime.InteropServices.MarshalDirectiveException: Cannot marshal 'parameter #1': Invalid managed/unmanaged type combination (Marshaling to and from COM interface pointers isn't supported).
Fatal error. Internal CLR error. (0x80131506)
ConsoleApplication3.zip (139.0 KB)
Cheers,
John