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

  • Thread starter Thread starter droll
  • Start date Start date
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?
 
Back
Top