I searched for a while trying to find if there was a similar question, but couldn't.
How can I convert System::String^
(from VC++) to cv::String
(from OpenCV)?
double x, y;
x = 10;
y = 10;
System::String ^ displayString = System::String::Concat("( ", x, " , ", y, " )");
char * test1 = displayString->ToCharArray;
cv::String test = cv::String(test1)
gives the error
Severity Code Description Project File Line Suppression State
Error C3867 'System::String::ToCharArray': non-standard syntax; use '&' to create a pointer to member RobocopComputerVision RobocopComputerVision .cpp 156
What is the best way to convert System::String^
to cv::String
?