Unmanaged function (pure C ++, if that matters):
void fooC(float& result);
I define the shell as (managed shell, C ++ \ cli):
void foo(float% result) //managed interface, need to pass result back to caller { fooC(???);//how to call unmanaged function? }
How to pass a reference parameter in a wrapper?
source share