Managed String to in/out char *

  • Thread starter Thread starter hkasten
  • Start date Start date
H

hkasten

Hello,

I have a unmanged C++ dll which has a function defined like:

Modify(char* str)

The char* is an in/out with a max length of 1024

I'd like to have a C++.Net Wrapper function which can be called by
CSharp like that:

Modify(ref str);

How do I have to define the C++.Net function and how do I have to call
my
unmanaged C++ function.

Regards,

Holger
 
Back
Top