How to write a function which return string array in C++.Net?

  • Thread starter Thread starter Alvin Lau
  • Start date Start date
Alvin,

The signature of your function should be (I believe):

String* __gc[] MyClass::MyFunction()

For the new bindings to the CLI in C++, you would want:

array<String^>^ MyClass::MyFunction()

Hope this helps.
 
Back
Top