out parameters in C++

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);
 
B

Bogdan Crivat [MSFT]

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
 

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

Top