out parameters in C++

  • Thread starter Thread starter Markus Minichmayr
  • Start date Start date
M

Markus Minichmayr

Hi!

I want to implement a class in C++ and use it in C#. There are Methods with
Parameters that I want to declare as "out" parameters. Would look like this
in C#:

void MyMethod(out int myOutPar)

How would this declaration look like in C++?

Thanks for any help
- Markus

PS.: I found out how a ref parameter is declared. E.g.:

void MyMethod(int __gc & myRefPar);
 
Hello

You can try
using namespace System::Reflection;
void MyMethod([Out]System::Int32* myOutPar)


--
--
--
This posting is provided "AS IS" with no warranties, and confers no rights.
Please do not send email directly to this alias. It is for newsgroup
purposes only.

thanks,
bogdan
 
Back
Top