Hi all,
I want to wrapp an exiting API written in C++ to .NET using managed
C++ extensions.
I want my managed C++ class library to link with the unmanaged dll. So
I don't use PInvoke for marshalling data's.
I don't want to wrapp some basic classes but rather re-write then into
managed C++ code. Let say I have a basic class named Vec3f which
stores 3 floating values. I re-write this class in managed C++ using
__value keyword to specified it's not a gc class. Let's call it
MgVec3f
Many methods of my unmaged dll uses as parameter Vec3f passed by
reference.
I have a class method oneMethod(Vec3f &vec) in unmamaged code. I
wrapp it to oneMethod(MgVec3f &vec) in my managed class.
My question is: How can I marshall MgVec3f to Vec3f without PInvoke ?
Is there a way to do this without making a copy ? What is the best
way (for performances) ?
Thanks in advance
*-----------------------*
Posted at:
www.GroupSrv.com
*-----------------------*