I am writting a managed wrapper in MC++ (2.0) around a C API.
At some stage I would like to have an out parameter, as in this C#
declaration:
void Method(out AStruct anArg);
my MC++ declaration is the following:
void Method(AStruct% anArg);
unfortunately this translate in C# into a ref declaration:
void Method(ref AStruct anArg);
Is there a way to mark my MC++ as a 'ref' declaration (as opposed to an
'out' one)?

Signature
Regards,
Lloyd Dupont
NovaMind development team
NovaMind Software
Mind Mapping Software
<www.nova-mind.com>
adebaene@club-internet.fr - 07 Nov 2005 09:53 GMT
> I am writting a managed wrapper in MC++ (2.0) around a C API.
> At some stage I would like to have an out parameter, as in this C#
[quoted text clipped - 9 lines]
> Is there a way to mark my MC++ as a 'ref' declaration (as opposed to an
> 'out' one)?
Apply the OutAttribute to the argument.
Arnaud
MVP - VC
Lloyd Dupont - 07 Nov 2005 23:41 GMT
>> Is there a way to mark my MC++ as a 'out' declaration (as opposed to an
>> 'ref' one)?
>
> Apply the OutAttribute to the argument.
oh.. well, that was easy.
thanks for that!