C# with C++ DLL

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello all,
I'm using a C++ DLL and I have a method that needs a "const char *buffer".
What is the equivalent of this in C#? Any help would be appreciated. Thanks.
 
You can marshal char* as string or byte[], whatever suits your needs better.

Tim said:
Hello all,
I'm using a C++ DLL and I have a method that needs a "const char *buffer".
What is the equivalent of this in C#? Any help would be appreciated.
Thanks.
 

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

Back
Top