I am trying to work out how to pass a pointer from my C# interface application to the C++ back-end functionality DLL.
I tried searching Google but can't work out what I'm doing wrong.. I'm used to using * for pointers and just changing the value in the pointer through direct assignment but in C# to C++ interactions I'm using ^ and don't know how to change the variable declared in C# so I can pass values to the C# interface.
in C++ i have
int MediaMogul::readlist(String^ name)
{
name = "changed value";
return 0;
}
and in C# I have
private void AddExistingMedia_DoWork(object sender, DoWorkEventArgs e)
{
MediaMogul item = new MediaMogul();
String name = "string to be replaced";
MessageBox.Show(name, "String");
item.readlist(name)
MessageBox.Show(name, "String");
}
I'd be grateful for any information regarding .NET C# -> C++ pointers