V
Vinz
Hello everyone,
My question is part C# and part C++. Please don't kill me for bringing C#
inhere Also please don't kill me for asking a n00b question, I'm still
new to C++/CLI and C#.
I have an assembly written in C++/CLI with a public function:
int MyClass::MyFunction(String ^x) {
x = "zzz";
return 0;
};
I want to call this function from a C# app and show the changed contents of
variable
MyClass TheClass = new MyClass();
String w = "m";
TheClass.MyFunction(w);
MessageBox.Show(w);
When executing, the messagebox shows 'm', and I want it to show 'zzz'.
What am I doing wrong here???
Thanks for reading sofar.
Vince.
My question is part C# and part C++. Please don't kill me for bringing C#
inhere Also please don't kill me for asking a n00b question, I'm still
new to C++/CLI and C#.
I have an assembly written in C++/CLI with a public function:
int MyClass::MyFunction(String ^x) {
x = "zzz";
return 0;
};
I want to call this function from a C# app and show the changed contents of
variable
MyClass TheClass = new MyClass();
String w = "m";
TheClass.MyFunction(w);
MessageBox.Show(w);
When executing, the messagebox shows 'm', and I want it to show 'zzz'.
What am I doing wrong here???
Thanks for reading sofar.
Vince.