P
Peteroid
I'm using VS C++.NET 2005 Express in /clr. How do I create, and then use, a
'^' pointer to a 'double'? That is, assuming its possible, please fill in
the question marks below (there are two of them):
double x = double(7) ;
double y ;
double^ x_ptr = ?x ;
y = ?x_ptr ; // y = double(7)
I'd know how to do this if 'x' and 'y' were an instances of a ref class, but
not when they are something like a double, int, long, etc. If I can remove
my current dependency on code of the form 'double *' (I need pointers to
doubles) I think I can go from /clr to /clr pure (or /clr safe, not sure
what the difference is between these last two, or which is 'stronger'). What
are the advantages of going 'purer' than /clr?
Thanks in advance for responses!
'^' pointer to a 'double'? That is, assuming its possible, please fill in
the question marks below (there are two of them):
double x = double(7) ;
double y ;
double^ x_ptr = ?x ;
y = ?x_ptr ; // y = double(7)
I'd know how to do this if 'x' and 'y' were an instances of a ref class, but
not when they are something like a double, int, long, etc. If I can remove
my current dependency on code of the form 'double *' (I need pointers to
doubles) I think I can go from /clr to /clr pure (or /clr safe, not sure
what the difference is between these last two, or which is 'stronger'). What
are the advantages of going 'purer' than /clr?
Thanks in advance for responses!