.net - What are best practices for using IntPtr vs. void* in C++/CLI? -
i'm using passing native pointers between assemblies. it's unfortunate strong typing goes out window in context. or @ least, haven't figured out how cross-assembly access c++/cli method returns pointer native udt. assuming i'm right either intptr
or void*
necessary here, should use?
always prefer cls-compliant route, in case intptr
. not .net languages know void*
is, know intptr
is.
regarding cross-assembly use of native udts, see #pragma make_public
.
Comments
Post a Comment