any idea how to get the numbers out of a MFC CString?
CString test = ".9 .8 .6";
double out [3];
???
in the end double should = .9,.8,.6
Printable View
any idea how to get the numbers out of a MFC CString?
CString test = ".9 .8 .6";
double out [3];
???
in the end double should = .9,.8,.6
There is no native MFC method. But you can pass the CString to sscanf, or create an STL string from the CString, which you then pass to a istringstream and use the extraction operators to get the floats.