I have a group of C ++ functions that I need to wrap with a managed C ++ class. Some unmanaged Returns unsigned difference value from function context. For example:
int func (....., Unsigned difference and value , ...);
I have found two questions:
-
I like the fact that in the form of an int (either "referee" or "outside") To expose "val" for the tasks, C ++ methods have to be wrapped. What kind should I use? "Unsigned int%", "UIintPtr ^%", something else? How does wrapping method look like?
-
Inside my managed C ++ cover method, how should I martial this parameter? I have tried several combinations with lines:
marshal_context ctx; Return origFunc (....., ctx.marshal_as & lt; unsigned int> (val), ......);
But I get compiler errors that complain about unsupported conversions.
No comments:
Post a Comment