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

  • Thread starter Thread starter Alvin Lau
  • Start date Start date
Alvin Lau said:
what should i wirte in the .h and .cpp ?

I suggest you ask in the Managed C++ group:

microsoft.public.dotnet.languages.vc
 
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.
 

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