Quantcast
Channel: .NET Framework Class Libraries forum
Viewing all articles
Browse latest Browse all 8156

How to marshal a StringNameBlock?

$
0
0

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


Viewing all articles
Browse latest Browse all 8156

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>