Home > Net >  The CLR project if read C pointer
The CLR project if read C pointer

Time:11-07

The CLR data easier to search for it on the Internet those (of course, may be I wrong keywords)

But the example of above pointer rarely

The content of I in c + + h
 
The class TestClass
{


Public:
TestClass ();
~ TestClass ();
Double the Add (double a, double b);
Double Del (double * a, double * b);
Idouble t Del (double * a, * b double, double * c);
};


C + +. The content of the CPP
 
TestClass: : TestClass ()
{

}

TestClass: : ~ TestClass ()
{

}

Double TestClass: : Add (double a, double b)
{
Return a + b;
}

Double TestClass: : Del (double * a, double * b)
{
Return * - * b;
}

Double TestClass: : Del (double * a, * b double, double * c)
{
Return a - * b * - * c.
}




Then, I again the CLR project when they encounter a problem

I don't know the Del double * a, said in CLR to

 
Double CLRtestclass: : Del (double ^ a, double ^ b)
{
Return testclass - & gt; Del (a, b);
}


Feel shouldn't be hard, but, the information on the Internet for a while find the

alas

CodePudding user response:

In the CLR project Object ^ how to turn into a unsigned char *?

CodePudding user response:

Reference: how: converts char * string System: : Byte array
  •  Tags:  
  • C#
  • Related