Managed String to in/out char *

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
 

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