best way to pass string from C++ to C#

D

droll

assuming my C++ DLL is running in a separate process from the C# code,
what's the best way to achieve this?

SendMessage? How do pass the string back in lparam or wparam since I can't
use pointers (due to the DLL and C# code being in different process space)??

write the string to a file and read it back? ouch.........not an elegant
solution. or use a registry?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top