I'm trying to import a COM function that takes a StringNameBlock (SNB). That's defined, in C++, asOLESTR**
. So what's the safest way to marshal that? The function in question only needs [in] parameters. So my code would own the memory.
If I marshal as string[]
as LPArray
, would that convert the string instances? If not, what should I do? P/Invoke's page just leave it as a IntPtr. I have no idea how to convert that.
Will Pittenger