Matthias Pospiech
2007-04-17 12:48:14 UTC
I have the simple problem to do something like
CString PhaseText;
m_WndEditPhase.GetWindowTextW(PhaseText);
int phase = ConvertCStringToInt(PhaseText);
but I do not know how the ConvertCStringToInt should look like in real code.
atoi(PhaseText.GetBuffer(0));
does not work because of conversion problems and seems to be C-code.
Solution ?
Matthias
CString PhaseText;
m_WndEditPhase.GetWindowTextW(PhaseText);
int phase = ConvertCStringToInt(PhaseText);
but I do not know how the ConvertCStringToInt should look like in real code.
atoi(PhaseText.GetBuffer(0));
does not work because of conversion problems and seems to be C-code.
Solution ?
Matthias