strings parameters in a managed class

confused

Newcomer
Joined
Apr 21, 2003
Messages
3
I am trying to used a member function in a managed c++ class. I want one of the parameters for the function to be a string. I keep getting errors when I try to do this. How do I use a string parameter in a member function?
 
To declare a string you have go like this:
(This is the string from managed extensions)
Code:
String* stringname;
And you also need:
Code:
using namespace System;
 
Back
Top