.net - C++/CLI - how to marshal "unsigned int&"? -
i've got bunch of c++ functions need wrap managed c++ class. of unmanaged functions return unsigned int values reference. e.g.:
int func(....., unsigned int& val, ......);
i've got 2 questions:
i'd wrapping c++ methods expose "val" such native functions unsigned int (either "ref" or "out"). type should use? "unsigned int %", "uintptr^%", else? how wrapping method declation like?
inside managed c++ wrapper method, how should marshal parameter? i've tried multiple combinations along lines of:
marshal_context ctx; return origfunc(....., ctx.marshal_as<unsigned int&>(val), ......);
but compiler errors complaining unsupported conversions.
Comments
Post a Comment