I want to use this C++ class in C#.
.h file contains:
struct XMFloat3 { public: float x; float y; float z; XMFloat3(){} XMFloat3(float _x, float _y,float _z) { x = _x; y = _y; z = _z; } };
class Car { public: XMFloat3 m_position; char* m_name; int m_model; double m_price;
Currently when i create clr\library project and use Car Class Pointer as Data Member in Wrapper Class and try to return XMFloat3 from Wrapper Function which definitaion is like:
But when i use this Wrapper class function in C#, in C# getPosition Declaration is like:
XMFloat3* getPosition(XMFloat *); Please tell me if i doing any wrong in up there or suggested how to use User Defined Datatype in such scenario. Thanks