Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

CString

Hello everybody,
I have an CString and want to convert it back to an integer or a long value. How can I do this in VC++?

Regards Stefan
0 Kudos
Message 1 of 2
(2,778 Views)
The easiest way would be to use the streaming operators of the Measurement Studio CNiString class. For example:


CNiString s = "100";
int value;
s >> value;

- Elton
0 Kudos
Message 2 of 2
(2,778 Views)