> > Just using pointers in the C# library results in the expected: Pointers and
> > fixed size buffers may only be used in an unsafe context.
[quoted text clipped - 10 lines]
>
> Tom
> My descendent class overrides an abstract function that needs to modify a
> 32bit int within the function. In C#, I would just pass in the value as ref
> or out. In MC++ I would just pass in a pointer. But since the abstract
> class is defined in an MC++ class library and the descenedent class is
> defined in a C# class library, I am having a problem finding a parameter
> declaration that works for both.
If you are talking about the old VS 2003 Managed C++ syntax, here's how
to do it:
http://www.thescripts.com/forum/thread281243.html
In VS 2005 (C++/CLI), there is such a thing as a managed reference:
http://tinyurl.com/3axp9r
Either way, C++ provides a syntax that's compatible with ref and out
parameters in C#.
Tom
tivofan - 21 Jun 2007 18:58 GMT
OK, I see now that I needed to use a tracking reference '%' instead of the
pointer reference.
Thanks very much for your help.
Bill
> > My descendent class overrides an abstract function that needs to modify a
> > 32bit int within the function. In C#, I would just pass in the value as ref
[quoted text clipped - 14 lines]
>
> Tom