Call C++ class from C#

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;

void setPosition(XMFloat3);
void setName(char* );
void setModel(int);
void setPrice(double);

XMFloat3 getPosition(){return m_position;}
char* getName(){return m_name;}
int getModel(){return m_model;}
double getPrice(){return m_price;}

void SetInformation(XMFloat3 position,char* name, int model,double price);
~Car(void);
static Car* getInstance();
private: Car(void){} Car(XMFloat3 position,char* name,int model,double price){} static Car* instance; };

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:

XMFloat3 getPosition() { return CarDataMemberObject->getPosition();} ....

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
Topic archived. No new replies allowed.