.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:

  1. 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?

  2. 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

Popular posts from this blog

node.js - Mongoose: Cast to ObjectId failed for value on newly created object after setting the value -

gradle error "Cannot convert the provided notation to a File or URI" -

python - NameError: name 'subprocess' is not defined -